• Post Reply Bookmark Topic Watch Topic
  • New Topic

help!!! Change SessionBean, need redeployment?

 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • 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
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Amit Jaipaul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!