Previous Next vertical dots separating previous/next from contents/index/pdf

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 9.2.

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 9.2, 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 9.2

 

Skip navigation bar   Back to Top