JBoss Community

Re: META-INF/services for module extensions - question/issue

created by Brian Stansberry in JBoss AS7 Development - View the full discussion

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

Start a new discussion in JBoss AS7 Development at Community