• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

If I put an EJB 2 in an application server under JavaEE 7, will it run?

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd like to know if an EJB 2 runs in an application server under JavaEE 7.
 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! It actually depends on the container. As far as I remember, OC4J and WebLogic were both capable of understanding deployment descriptors (DDs) for both versions EJBs 2.x and 3.x. I made a post on my blog about it for WebLogic 10.3.4 (http://wmarkito.wordpress.com/2011/01/19/java-standards-in-weblogic-10-3-4/)

Although we highly encourage someone to migrate as the API is much more simpler and since you'd be upgrading your container and probable redoing all your tests with the EJB 2 app, it would be almost the same time you'd need to migrate from EJB 2 to EJB 3.

Here is a link to some migration tips, still based on OC4J but most are general guidance for EJB2xEJB3 migration. http://www.oracle.com/technetwork/middleware/ias/oc4j-twp-ejb3-migration-1013-133021.pdf

Also note that this migration generally means delete lines of code & configuration files, which is really nice and easy.

Thanks!
 
Sheriff
Posts: 22683
128
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I recall correctly, JEE 7 no longer requires containers to support EJB 2. Whether or not it works depends on the container.
 
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic