Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to migrate EJB 2.0 to EJb 3.0 using XML descriptors

 
Alok Agrawal
Greenhorn
Posts: 14
Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to migrate an EJB 2.0 based application to EJB 3.0 using XML descriptors (without annotations).

I have following queries:

1) How to migrate Entity bean life cycle methods without annotatios?
2) How to migrate Session bean life cycle methods without annotatios?

Please let me know if anyone have idea about it.

Thanks
 
amit punekar
Ranch Hand
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Have you checked out EJB by OReily. I believe they have a chapter that talks about the EJB 2 and 3 beans interoperability. That might help you.
I have one doubt though, when you migrate your entity beans to JPA entities, would you be modifying the existing code base? If yes then why not take annotations?

regards,
amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic