[jboss-dev-forums] [JBoss AS 7 Development] - Re: Lifecycle notifications on AS7

Klaus Benary do-not-reply at jboss.com
Wed Mar 14 08:10:00 EDT 2012


Klaus Benary [https://community.jboss.org/people/k_benary] created the discussion

"Re: Lifecycle notifications on AS7"

To view the discussion, visit: https://community.jboss.org/message/723726#723726

--------------------------------------------------------------
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
[https://community.jboss.org/message/723726#723726]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120314/a83255e6/attachment.html 


More information about the jboss-dev-forums mailing list