2 Upgrading WebLogic Server 4.5 and 5.1 to Version 7.0

for the WebLogic Server EJB container. This file must conform to the WebLogic Server 5.1 DTD or the WebLogic Server 7.0 DTD.

„In order to specify the mappings to the database, container-managed persistence entity beans require a CMP deployment descriptor that conforms to either the WebLogic Server 5.1 CMP DTD, the WebLogic Server 7.0 EJB 1.1 DTD, or the WebLogic Server 7.0 EJB 2.0 DTD.

„In WebLogic Server 7.0 the max-beans-in-cacheparameter controls the maximum number of beans in the cache for Database concurrency. In earlier WebLogic Server versions, max-beans-in-cachewas ignored; the size of the cache was unlimited. You may need to increase the size of this parameter.

EJB Porting Recommendations

„Use TxDataSource.

EJBs should always get their database connections from a TxDataSource. This allows the EJB container's transaction management to interface with the JDBC connection, and it also supports XA transactions.

The WebLogic Server 7.0 CMP Deployment Descriptor supports TxDataSources and should be used instead of the WebLogic Server 5.1 CMP Deployment Descriptor which only specifies a connection pool.

„Use a fast compiler: ejbc.

The WebLogic Server EJB compiler (weblogic.ejbc) generates Java code that is then compiled by the Java compiler. By default, WebLogic Server uses the javac compiler included with the bundled JDK. The EJB compiler runs much faster when a faster Java compiler is used. Use the -compileroption to specify an alternate compiler as in the following example:

java weblogic.ejbc -compiler sj pre_AccountEJB.jar AccountEJB.jar

„Correct errors before deploying the EJB on WebLogic Server 7.0.

The WebLogic Server 7.0 EJB compiler (ejbc) includes additional verification that was missing from earlier WebLogic Server releases. It is possible that an EJB deployed in a previous WebLogic Server version without error, but WebLogic Server 7.0 finds and complains about the error. These errors must be corrected before the EJB is deployed in WebLogic Server 7.0.

2-18BEA WebLogic Server 7.0 Upgrade Guide

Page 66
Image 66
BEA 7 manual EJB Porting Recommendations

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.