I tried filtering services to those than implemented the org.jboss.util.Service
interface by implementing a solution that performs that same test as the
MBeanServer.isInstanceOf(String) method, but uses the thread context
class loader to obtain the bean class. This works except for this mbean:
<mbean code="com.sun.jdmk.comm.HtmlAdaptorServer" name="Adaptor:name=html">
<attribute name="MaxActiveClientCount">10</attribute>
<attribute name="Parser" />
<attribute name="Port">8082</attribute>
</mbean>
which is obviously does not know anything about org.jboss.util.Service
since this the JMX RI html adaptor. This bean happens to have start()/stop()
which are how the html adaptor is started and stopped. To go with this solution
we need a JBoss service adaptor to dispatch the start/stop methods.
This is the full list of mbeans that are registering on startup and their JBossService
status
based on implementation of the org.jboss.util.Service interface:
[Default] isJBossService(org.jboss.web.WebService) = true
[Default] isJBossService(org.jboss.naming.NamingService) = true
[Default] isJBossService(org.jboss.naming.JNDIView) = true
[Default] isJBossService(org.jboss.tm.TransactionManagerService) = true
[Default] isJBossService(org.jboss.security.plugins.JaasSecurityManagerService) = true
[Default] isJBossService(org.jboss.jdbc.JdbcProvider) = true
[Default] isJBossService(org.jboss.jdbc.HypersonicDatabase) = true
[Default] isJBossService(org.jboss.jdbc.XADataSourceLoader) = true
[Default] isJBossService(org.jboss.jdbc.XADataSourceLoader) = true
[Default] isJBossService(org.jboss.ejb.ContainerFactory) = true
[Default] isJBossService(org.jbossmq.server.JBossMQService) = true
[Default] isJBossService(org.jboss.jms.jndi.JMSProviderLoader) = true
[Default] isJBossService(org.jboss.jms.asf.ServerSessionPoolLoader) = true
[Default] isJBossService(org.jboss.deployment.J2eeDeployer) = true
[Default] isJBossService(org.jboss.ejb.AutoDeployer) = true
[Default] isJBossService(org.jboss.resource.RARDeployer) = true
[Default] isJBossService(org.jboss.resource.ConnectionManagerFactoryLoader) = true
[Default] isJBossService(org.jboss.resource.ConnectionManagerFactoryLoader) = true
[Default] isJBossService(org.jboss.resource.ConnectionManagerFactoryLoader) = true
[Default] isJBossService(org.jboss.resource.ConnectionFactoryLoader) = true
[Default] isJBossService(org.jboss.jmx.server.JMXAdaptorService) = true
[Default] isJBossService(org.jboss.jmx.server.RMIConnectorService) = true
[Default] isJBossService(com.sun.jdmk.comm.HtmlAdaptorServer) = false
[Default] isJBossService(org.jboss.mail.MailService) = true
[JBossMQ] isJBossService(org.jbossmq.server.JMSServer) = false
[JBossMQ] isJBossService(org.jbossmq.distributed.server.DistributedJMSServerOIL) =
false
[JBossMQ]
isJBossService(org.jbossmq.distributed.interfaces.DistributedConnectionFactory) = false
[JBossMQ] isJBossService(org.jbossmq.distributed.server.DistributedJMSServerUIL) =
false
[JBossMQ]
isJBossService(org.jbossmq.distributed.interfaces.DistributedConnectionFactory) = false
[JBossMQ] isJBossService(org.jbossmq.distributed.server.DistributedJMSServerRMIImpl) =
false
[JBossMQ]
isJBossService(org.jbossmq.distributed.interfaces.DistributedConnectionFactory) = false
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development