This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About EJB 1.1 upgrade to EJB 2.0

 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote all my project using EJB 1.1. I am wondering how much work it needed to upgrade this beans to EJB 2.0.
Is there any existing tool to do such kind of thing?
Anyone with experience please share!
Thanks in advance.
Guoqiao
 
Vishy Janardhan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun,
It really depends on what you did in your project (i.e. was it just a session bean, how did you handle persistence etc...).
Vish
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Vishy:
In my case, I use both EntityBean and SessionBean. For EntityBean, I use CMP but write many customized finder method.
For those, will be difficult to upgrade?
Thanks for your reply!
Guoqiao
Originally posted by Vishy Janardhan:
Sun,
It really depends on what you did in your project (i.e. was it just a session bean, how did you handle persistence etc...).
Vish
 
Karl Laird
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The major upgrade hassle will probably be in the setting up of the abstract schema. There are tools out there that help with the mappings of abstract schema to physical schema, but most of these leave the two looking pretty similar often defeating alot of the advantages.
Yes your custom finders will all need to be re-written - but the EJBql is fairly similar to SQL in many respects so as long as you werent using too many sophisticated SQL functions the changes will be mostly template and easy to make
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Karl:
Thank you so much for your reply! I got better idea of what I should do now!
Thanks again!
Guoqiao
Originally posted by Karl Laird:
The major upgrade hassle will probably be in the setting up of the abstract schema. There are tools out there that help with the mappings of abstract schema to physical schema, but most of these leave the two looking pretty similar often defeating alot of the advantages.
Yes your custom finders will all need to be re-written - but the EJBql is fairly similar to SQL in many respects so as long as you werent using too many sophisticated SQL functions the changes will be mostly template and easy to make
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic