Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop EJB applications > Develop entity beans


Apply lightweight local mode to an entity bean

WAS provides a special operation mode called lightweight local mode, which can improve the performance of entity bean methods. We can decide which entity beans in the application to run in this mode.

We can apply lightweight local mode to specific EntityBean types within the application with the Marker interface technique.


Marker interface technique

Use the marker interface technique when a group of beans within the application is related through a common inheritance hierarchy, and all the beans in the hierarchy are to be marked. For an application with a large number of beans in a hierarchy, this technique is the most efficient.

To use a marker interface, code your bean implementation class to implement the com.ibm.websphere.ejbcontainer.LightweightLocal interface. The bean implementation class does not need to directly implement the interface; any parent class or interface can also implement it. For details, see the com.ibm.websphere.ejbcontainer package in the API section of the information center.
Enterprise beans
Manage EJB containers

+

Search Tips   |   Advanced Search