• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Previous Versions of EJB and EJB 3.0

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 304
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
This is my favorite tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic