Migrating enterprise bean code to the supported specification

Why and when to perform this task

Support for Version 2.0 of the Enterprise JavaBeans (EJB) specification is new for Version 5 of this product. Migration of enterprise beans deployed in Version 4.0.x of this product is not generally necessary; Version 1.1 of the EJB specification is still supported. Follow these steps as appropriate for your application deployment.

Steps for this task

  1. Modify enterprise bean code for changes in the specification.
    • For Version 1.0 beans, migrate at least to Version 1.1.
    • As stated previously, migration from Version 1.1 to Version 2.0 of the EJB specification is not required for redeployment on this version of the product. However, if your application requires the capabilities of Version 2.0, migrate your Version 1.1-compliant code.

      Note: The EJB Version 2.0 specification mandates that prior to the EJB container's executing a findByMethod query, the state of all enterprise beans enlisted in the current transaction be synchronized with the persistent store. (This is so the query is performed against current data.) If Version 1.1 beans are reassembled into an EJB 2.0-compliant module, the EJB container synchronizes the state of Version 1.1 beans as well as that of Version 2.0 beans. As a result, you might notice some change in application behavior even though the application code for the Version 1.1 beans has not been changed.

  2. Reassemble and redeploy all modules to incorporate migrated code.

Related concepts
Enterprise beans
Related tasks
Migrating a version 4.0 data access application to version 5.1
Using enterprise beans in applications
Related reference
Enterprise beans: Resources for learning



Searchable topic ID:   tejbmigr
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/tejb_migr.html

Library | Support | Terms of Use | Feedback