Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change class, need to redeploy?

 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have deployed one SessionBean, and works fine, now I've changed something in the business method, and run this ejb again, the change I cannot see. After redeploying, then I can view the change I made.
Does it mean, in short, I must do redeployment as long as I changed anything relating to EJB?
Is there any good way to skip the redeployment? Since just for a small test, redeployment takes long time.

Hai
 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Guys,
Please suggest me a simple way to do redeployment. Do I need run cleanup command, then do whole redeployment from the begining?

Look forward to your replies!

Hai
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deployment issues are vendor-specific. Some containers will simply let you save the file in which you have your bean class and will somehow discover that the file has change and hot-deploy it. Other containers will require a manual and tedious deployment process upon each change. I strongly urge you to consult your vendor documentation
 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Valentin,
Thanks a lot. What I'm using now is J2EE 1.3.1 RI based on HFEjb, does that mean I have to delete those jar and redo the deployment from the scratch?


Hai
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With the J2EE RI, you definitely have to redeploy every time you make changes because the deployment tool has to rebuild the stubs and other stuff needed in order to make the beans work properly.
 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Valentin,
Thanks a lot for your reply. It seems that I have to waste times in deploying using RI even I just do a very small test in EJB.
Do you have any better deploytool tool to recommend?

Thanks.

Hai
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic