0 Replies Latest reply: Mar 28, 2012 1:27 PM by Paul Carroll RSS

JBoss 5.1 Hot Redeploy

Paul Carroll Newbie

I have an application deployed in JBoss 5.1.0.

 

 

 

On startup, I have an MBean configured to start some services in my application.  These services depend on certain EJBs to be deployed before they may start.  This all works fine.

 

When I make a change to web.xml or application.xml, JBoss undeploys my web application and stops all my EJBs.  However, that is where it stops.  It does not redeploy.  The application needs to be completely shutdown and started again.

 

Does this have anything to do with MBean?  From other posts I have seen, the hot redeploy should be straightforward.  Make a change to web.xml or application.xml and JBoss will redeploy.

 

Here is my user-service.xml located in the deploy directory:

 

 

<server>
 <classpath codebase="." archives="myappserver-jboss.jar"/>
 <mbean code="mycompany.appserver.jboss.startup.StartupService" name="jboss:type=Service, name=MyCompanyStartupService">
  <depends>jboss.jca:service=ManagedConnectionPool,name=jdbc/mycompanyDS</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=a-ejb.jar,name=AManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=b-ejb.jar,name=BManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=b-ejb.jar,name=CManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=d-ejb.jar,name=DManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=e-ejb.jar,name=EManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=f-ejb.jar,name=FManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=g-ejb.jar,name=GManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=h-ejb.jar,name=HManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=i-ejb.jar,name=IManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=j-ejb.jar,name=JManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=k-ejb.jar,name=KManager,service=EJB3</depends>
  <depends>jboss.j2ee:ear=mycompany.ear,jar=l-ejb.jar,name=LManager,service=EJB3</depends>
  </mbean>
</server>

 

Thanks.