Upgrading Enterprise JavaBeans

This topic gives more detail about upgrade changes noted for Enterprise JavaBeans.

For a more complete list of changes affecting applications upgraded from version 8.1, see Changes During Upgrade from WebLogic Workshop 8.1 to Version 10.x.

Enabling Automatic Transaction Support in Entity Beans

In version 8.1, the EJB container would create a transaction for an entity bean if it ran in an unspecified transaction. In version 10.x, the default is not to create the transaction for the transaction attribute values indicating "not supported," "supports," and "never."

To support the old behavior, ensure that the TransactionAttribute.REQUIRED constant is used in the @RemoteMethod annotation applied to entity bean methods. Here's an example of the annotation's syntax:

@RemoteMethod(transactionAttribute=Constants.TransactionAttribute.REQUIRED)
public void myMethod()
{
    ...
}

Related Topics

Changes During Upgrade from WebLogic Workshop 8.1 to Version 10.x


Still need help? Post a question on the Workshop newsgroup.