File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes change class, need to redeploy? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "change class, need to redeploy?" Watch "change class, need to redeploy?" New topic
Author

change class, need to redeploy?

Hai Lin
Ranch Hand

Joined: May 23, 2004
Posts: 79
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

Joined: May 23, 2004
Posts: 79
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

Joined: Aug 26, 2001
Posts: 7610
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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Hai Lin
Ranch Hand

Joined: May 23, 2004
Posts: 79
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

Joined: Aug 26, 2001
Posts: 7610
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

Joined: May 23, 2004
Posts: 79
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
 
Consider Paul's rocket mass heater.
 
subject: change class, need to redeploy?
 
Similar Threads
Getting started - env issues
Swapping database runtime
Control deployment of ear by itself.
Best practice for properties / configuration in JEE application
Redeploy EJB at runtime + weblogic