• 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

help!!! Change SessionBean, need redeployment?

 
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,
If I have deploy one sessionbean, later I change some function withing that session, do I need redeploy the bean again to view my change?
If I have to, any simple to do that? (Since so far what I know is: 1) run cleanup, 2)redo the whole deploy process again) which takes much time, even if I just change a small part of session bean)
Really need figure a better way for this, since I'm doing a lot of tests for EJB, and redeployment it waste lots of time even for a very small change of sessionbean.

Thanks.

Hai
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Lin,
If your changing the BJ you need to re-deploy it. BTW, what appserver and which version your using.
 
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
Natarajan,
I'm only using J2EE 1.3.1 RI, got it from sun website. So I have to do redeploy from the begining? What is the correct step to redloy? (I need delete original application first?)

Thanks.

Hai
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lin,
You can redeploy bu overwriting the original files it-self. But in-case if your deleting and re-deploying it is good practice. Better have some ant scripts for deploying whole application that will reduce overall time. In-case if your using for simple testing it is fine you can manually deploy things.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just check if this app server supports hot deployment. If it supports hot deployment then, simply putting the .jar file again in the deploy directory will redeploy all the beans.

This saves a lot of deployment time.

If ur app server does not support hot deployment (not part of EJB2.0 specs), u can go for JBoss 3.2.4, which is absolutely free and supports hot deployment too.
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
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