• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
Honk if you love justice! And honk twice for tiny ads!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic