aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes HELP!! MIGRATING FROM EJB 2.1 to EJB 3.1 for Large Enterprise Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "HELP!! MIGRATING FROM EJB 2.1 to EJB 3.1 for Large Enterprise Application" Watch "HELP!! MIGRATING FROM EJB 2.1 to EJB 3.1 for Large Enterprise Application" New topic
Author

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

Jigar Upadhyay
Ranch Hand

Joined: Jan 25, 2005
Posts: 32
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.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
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.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

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.


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 577
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


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Jigar Upadhyay
Ranch Hand

Joined: Jan 25, 2005
Posts: 32
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
Ranch Hand

Joined: Feb 01, 2005
Posts: 577
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
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
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..


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Jigar Upadhyay
Ranch Hand

Joined: Jan 25, 2005
Posts: 32
Thanks Niranjan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HELP!! MIGRATING FROM EJB 2.1 to EJB 3.1 for Large Enterprise Application
 
Similar Threads
What is important, when starting with Hibernate Persistence and Spring?
WebSphere 5.1 to 6.1 Migration - JMS
EJB3 Entity Beans - Query Recommendation
HELP!! MIGRATING FROM EJB 2.1 to EJB 3.1 for Large Enterprise Application
MyEclipse - Difference between EJBProject and Enterprise Application Project in Eclipse