Brian Stansberry [
http://community.jboss.org/people/brian.stansberry] created the
discussion
"Re: META-INF/services for module extensions - question/issue"
To view the discussion, visit:
http://community.jboss.org/message/623583#623583
--------------------------------------------------------------
Another hook, besides mbeans, that the AS provides for installing services from a
deployment is the MSC
https://github.com/jbossas/jboss-msc/blob/master/src/main/java/org/jboss/...
https://github.com/jbossas/jboss-msc/blob/master/src/main/java/org/jboss/....
Basically, the AS scans any deployment for a
META-INF/services/org.jboss.msc.service.ServiceActivator file. If found, the ServiceLoader
mechanism is used to load the specified ServiceActivator implementation, and then its
activate() method is invoked. Via that mechanism you could install an MSC service, and
that service could do your ServiceLoad start from its start() method, and also do any
cleanup from its stop() method.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/623583#623583]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]