This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

Thanks
 
author & internet detective
Posts: 39879
798
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It was the best of times. It was the worst of times. It was a tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!