aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Are there any EJB migration tools available for migrating EJB 2.1 to 3.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Are there any EJB migration tools available for migrating EJB 2.1 to 3.x" Watch "Are there any EJB migration tools available for migrating EJB 2.1 to 3.x" New topic
Author

Are there any EJB migration tools available for migrating EJB 2.1 to 3.x

Ali Yuruz
Greenhorn

Joined: Oct 10, 2007
Posts: 8
Hi

Are there any EJB migration tools available for migrating EJB 2.1 to 3.1.

Thanks


SCJP
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30352
    
150

I haven't heard of anything. For session beans/message driven beans, it isn't hard anyway. You change from xml to annotations and inject the beans in the caller.

For entity beans, there isn't a smooth migration path even manually because you have to rewrite in JPA. The fact that it isn't straightforward to do manually implies there isn't a tool.

Also, IBM/WebSphere didn't provide a migration tool for EJB 3 whereas they did for their predecessors.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Christian Gossart
Ranch Hand

Joined: Mar 13, 2008
Posts: 34
Hi Ali,

I don't think there is any EJB 2 to 3 migration tool, as Jeanne said. The general concepts remain the same, but EJB 3.x is a great step toward simplification and ease of development.
If your only concern is to upgrade your J2EE application server to a JEE5/JEE6 application server, you should not have to change anything: the EJB 3.1 specification supports backward compatibility.
On the other hand, if you're up for a full EJB 3.x migration of your application, I advise you to read Adam Bien's Real World Java EE Patterns Rethinking Best Practices. This book covers the changes between the core J2EE patterns and the way they can be rethought/removed using the new JEE programming style. It also provides a EJB 2 Integration and Migration strategy that can help you estimate the cost of your migration (the persistence layer will be the hardest) and choose between a EJB 2 to EJB 3 migration and a full rewrite of your application, provided you have access to the business needs and specification documents.


Christian Gossart
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Are there any EJB migration tools available for migrating EJB 2.1 to 3.x