JBoss Community

Re: Lifecycle notifications on AS7

created by Klaus Benary in JBoss AS 7 Development - View the full discussion

Hi,

 

first of all a word about our problem: We currently deploy a couple of well isolated applications to the JBoss, each of them in a separate jar. However, there is a master application among them which – after a server start up - performs system wide initializations. And this master applications used to be registered to the deployers and received their notifications. So it was able to find out when all applications were deployed and could then start these initializations.

 

Our JBoss7 solution is a bit awkward, but nevertheless it works for us: Like before, we use automatic application deployment by putting the jars into the deployment folder. Our master application gets the deployment scanner MBean from the local MBeanServer ("jboss.as:subsystem=deployment-scanner,scanner=default") and picks up the information about the location of the deployment directory. Then it watches the deployment marker files in and below this directory until all .isdeploying markers have gone. This is the time to start the initialization.

 

Klaus

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community