Use of EJB 2.x entity beans

Although the use of EJB 2. x entity beans in WebSphere Commerce is possible, it is not recommended.

Local interfaces and Container-Managed Relationships, which are the two main features provided by the EJB 2. x specification, will not benefit WebSphere Commerce users for the following reasons:

Local interfaces

The performance increase gained by local interfaces is already obtained through the WAS feature that allows pass-by-reference. For more information on pass-by-reference, see the Object Request Broker tuning guidelines topic in the WAS information center.

Container-Managed Relationships

To minimize complexity in the object model, rather than using the Container-Managed Relationships, an object relationship between enterprise beans can be established by adding explicit getter methods to the enterprise beans that return access beans.

If you choose to create EJB 2. x entity beans, you should be aware of the following limitations and stipulations:

Related concepts

WebSphere Commerce enterprise beans
Persistent object model
Extending the WebSphere Commerce object model

Related tasks

Create new entity beans