JBoss Version: 3.2.2RC4
OS: Redhat 9
JDK Version: 1.4.2
Im trying to introspect a EAR file using JMX at runtime and find the components(jars, wars and sars) that make up the ear file. Is there a possible way to do this?
Looks like the EAR Objectname has a "modules" attribute that displays only the web components and sar components. Tracing back through the source, the Defaultmanagedobjectfactorymap has mappings that exclude JARDeployer. The factoryMap(in DefaultManagedObjectFactoryMap) that it uses to get the <j2eecomponent>modulefactory has bindings for all types of services except the JARDeployer Service. There is also this piece of code that looks like i can use to add JarDeployers.
if (factory == null) { Iterator iter = patternFactoryMap.keySet().iterator(); while (iter.next()) { ObjectName pattern = (ObjectName) iter.next(); if (ObjectNameMatch.match(pattern, sendName)) { factory = (ManagedObjectFactory) patternFactoryMap.get(pattern); } if (factory == null) { log.debug(.....); } }