Porting and Converting Enterprise JavaBeans Applications

return null; // required by the EJB specification

}

„In EJB 1.1 or 2.0, entity beans cannot use bean-managed transactions. Instead, they must run with a container-managed transaction attribute (for example, Required, Mandatory, etc.).

Steps for Porting a 1.1 EJB from WebLogic Server 5.1 to WebLogic Server 7.0

The WebLogic Server 5.1 deployment descriptor only allows the exclusive or read-only concurrency options. The database concurrency option is available when upgrading to the WebLogic Server 7.0 weblogic-ejb-jar.xmlfile. For more information about this option, see information on database concurrency in weblogic-ejb-jar.xml Document Type Definitions in Programming WebLogic Enterprise JavaBeans.

The WebLogic Server 7.0 CMP deployment descriptor allows multiple EJBs to be specified and it supports using a TxDataSource instead of a connection pool. Using a TxDataSource is required when XA is being used with EJB 1.1 CMP.

To port a 1.1 EJB from WebLogic Server 5.1 to WebLogic Server 7.0:

1.Open the Administration Console. From the home page, click on Install Applications under the Getting Started heading.

2.Locate the JAR file you wish to port by clicking the Browse button, then click Open and then Upload. Your bean should now be automatically deployed on WebLogic Server 7.0.

3.Run a setEnv script in a client window and set your development environment. (For more information, see Establishing a Development Environment in Developing WebLogic Server Applications.)

4.Compile all the needed client classes. For example, using the Stateless Session Bean sample that was provided with WebLogic Server 7.0, you would use the following command:

javac -d %CLIENTCLASSES% Trader.java TraderHome.java TradeResult.java Client.java

5. To run the client, enter this command:

BEA WebLogic Server 7.0 Upgrade Guide

2-21

Page 69
Image 69
BEA 7 manual Return null // required by the EJB specification

7 specifications

BEA 7, a significant product from BEA Systems, represents a cornerstone in enterprise application integration and service-oriented architecture. As a comprehensive solution for developing, deploying, and maintaining enterprise-level applications, it brings a host of features that cater to the needs of businesses seeking agility and reliability in their IT infrastructure.

One of the standout characteristics of BEA 7 is its robust support for service-oriented architecture (SOA). This enables businesses to create applications as loosely coupled services, facilitating easier integration and scalability. The platform's emphasis on middleware technologies allows organizations to streamline their IT operations, enhance interoperability, and reduce time to market for new applications.

BEA 7 includes a powerful application server that provides a reliable runtime environment for managing applications. Offering high availability and scalability, it can successfully handle the demands of high-volume transactions while ensuring optimal performance. The built-in clustering capability ensures that applications can remain operational even in the event of server failures, which is critical for mission-critical applications.

Another notable feature of BEA 7 is its capabilities for web services. With support for industry standards such as XML, SOAP, and WSDL, users can easily expose and consume services across diverse platforms. This allows businesses to take full advantage of an interconnected ecosystem and simplifies the process of integrating various applications and data sources.

Security is a paramount consideration in BEA 7, which includes strong authentication, authorization, and encryption mechanisms to protect sensitive data. The platform's comprehensive security features ensure compliance with regulatory requirements and protect against potential threats, which is particularly important for sectors handling sensitive information, such as finance and healthcare.

BEA 7 also embraces innovative technologies such as the Java EE platform, facilitating the development of cross-platform applications. The integrated development environment (IDE) offers numerous tools for developers, making it easier to design, debug, and deploy applications. Developers benefit from built-in support for commonly used frameworks and libraries, improving productivity and enabling rapid application development.

In summary, BEA 7 stands out as a powerful enterprise solution, distinguished by its support for SOA, robust application server capabilities, web services integration, strong security features, and a developer-friendly environment. These attributes make BEA 7 an essential tool for organizations aiming to enhance their operational efficiency and adapt to the increasingly dynamic business landscape.