• 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

HELP!! MIGRATING FROM EJB 2.1 to EJB 3.1 for Large Enterprise Application

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,
I am working on a large enterprise application and application is using EJB2.1 and still under development. Its a too big project for the too big Organization but the technology used in this project seems to be little out dated to me at some point.

We are using Session Beans and Message Drive Beans (as JMS consumer) but not using Entity Beans.

Now my question is what are the main advantages in migrating to EJB 3.1 from EJB 2.1? I know some of the advntages and search on net as well but I want to know the feedback if some one has faced this situation in their project before. I want to know how tough it is to migrate it from EJB 2.1 to EJB 3.1? What are the main challenges behind this?

Hope to see great response as alway from all of you.
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Session Beans and MDBs are fine in EJB 2. Arguably, the weakest point of EJB 2 is Entity Beans.

Regardless of entity beans, if you migrate from EJB 2.x to EJB 3.x, you can use dependency injection (DI) instead of Service Locator pattern using JNDI, and can use metadata annotations instead of verbose deployment descriptor.
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to differentiate between EJB 3.0 and EJB 3.1 as the EJB 3.1 spec is not yet released and it might take a while for the App server vendors to be EJB 3.1 compliant.
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jigar,

We cover EJB 2->EJB 3 migration issues in EJB 3 in Action and have devoted a full chapter to migration issues. In short, the reasons to migrate would be ease-of-use and JPA adoption. The migration can be done incrementally since EJB 2 and EJB 3 are guaranteed to be interoperable. I do know of a few folks that have done this. It is well worth it and pretty easy to do.

Hope this helps,
Reza
 
Jigar Upadhyay
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Reza,
Thank you very much for your feedback, I will definitely refer EJB 3 In Action. I am glad to have a feedback from you. Thank you very much for your time.

Regards,
Jigar
 
Reza Rahman
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jigar,

You are very welcome and the privilege is mine to able to be of help.

Let me know if you have specific questions that we did not address in the book.

Regards,
Reza
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jigar,

You can also check out the chapter 10 of the book Beginning EJB 3 Application Development: From Novice to Professional. Chapter 10 is about Migrating EJB 2.x Applications to EJB 3!

Hth..
 
Jigar Upadhyay
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Niranjan.
 
reply
    Bookmark Topic Watch Topic
  • New Topic