• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

change class, need to redeploy?

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
That new kid is a freak. Show him this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic