Draft Document for Review July 28, 2004 7:33 pm

6320ch_DEV_post_migration.fm

Change the container transaction type

From the Assembly Descriptor tab of the EJB Deployment Descriptor. (see , “Add the WCSecurity role” on page 148 for details), do the following:

1.If any transaction levels are already associated with your EJBs, you may wish to remove them and re-add them again. This is easier than finding which need to be updated and which do not.

2.In the Container Transactions section, Click Add....

The Add Container Transaction window will open.

3.Select your custom EJBs and click Next.

4.Click the Container transaction type list and select Required.

5.In the Methods found box, select all of your custom EJBs and click Finish.

6.Save your work by pressing Ctrl + S.

Note: If you have any EJBs which required the transaction level to be RequiresNew, repeat the steps above for those EJBs. If you are unsure about this, you can check the settings in the backup of your VisualAge for Java environment.

Remove serialVersionUID constants

Although this is not a strict requirement of the EJB 1.1 specification, you will need to remove any constant declarations of the name serialVersionUID from your Bean source.

Open each of your Bean Java source files in turn. In the class level variable declarations section, you will see a line of code similar to the following:

public final static String serialVersionUID = <unique identifier>

Delete this line and save your source by pressing Ctrl + S.

Ensure that ejbCreate returns primary key object

For entity beans, the ejbCreate methods must return the primary key object that correspond to the object that the method has created.

This is an EJB 1.1 specification requirement. For details about the requirements for ejbCreate method on entity beans, see sections 9.2.3, 9.4.2 and 9.4.7.3 of the EJB 1.1 specification, which can be found at:

http://java.sun.com/products/ejb/docs.html

Chapter 8. Post-migration steps

149

Page 167
Image 167
IBM SG24-6320-00 manual Change the container transaction type, Remove serialVersionUID constants