[jboss-dev-forums] [JBoss AS7 Development] - Re: META-INF/services for module extensions - question/issue

Brian Stansberry do-not-reply at jboss.com
Mon Aug 29 12:08:06 EDT 2011


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/623566#623566

--------------------------------------------------------------
The <extension> element in standalone.xml is not meant to be a generic facility for loading ServiceLoader-based services. It's meant for installing implementations of org.jboss.as.controller.Extension (i.e. new manageable subsystems) and nothing else. That's why your dummy implementations get loaded.

If you're not looking to add a manageable subsystem, I recommend deploying a sar with a META-INF/jboss-service.xml that declares an mbean whose start() method does the ServiceLoader.load() call.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/623566#623566]

Start a new discussion in JBoss AS7 Development at Community
[http://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/20110829/f0af7e4e/attachment.html 


More information about the jboss-dev-forums mailing list