Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Previous Versions of EJB and EJB 3.0  RSS feed

 
Mark Banker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A question for the Authors:

Are previous versions of EJBs compatible with EJB 3.0? If I have an application currently using EJB 2.1 can I use EJB 3.0 as well or would I need to redo the whole app? What changes would be required?

Thanks,

Mark Banker
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All existing applications will continue to work in EJB 3.0 compliant containers. There is also the ability to interoperate between 2.1 and 3.0 session beans, so existing applications can be extended using 3.0 components (e.g. 2.1 session beans can call 3.0 session beans and vice versa).

The persistence API is a rather big change in the model, though. I don't expect that there will be much opportunity (or desire for that matter) to use both 2.1 entity beans and 3.0 entities in the same domain model. It's possible, though, as long as there are no relationships between them.

-Mike
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!