-
1. Re: Jboss 5.1 - javax.management.MBeanRegistrationException: preRegister() failed
meme Apr 24, 2010 2:36 AM (in response to prakashmvc)Hi,
in your stacktrace it's shown javax.management.InstanceNotFoundException: Mands:service=LoadMonitor is not registered. So I think that you've got dependency on that service but it's not available (not yet or not anymore). As mentioned in another post you'll shoud define the dependencies between your services and other services, wars etc. which depends on them.
Marc
-
2. Re: Jboss 5.1 - javax.management.MBeanRegistrationException: preRegister() failed
prakashmvc Apr 27, 2010 2:48 AM (in response to meme)Hi,
For more carity please refer the details below.
Note: Mands is our cutom folder (renamed the default folder) for our project.
loadindicator.ear
|_ META-INF
|_ application.xml
|_ jboss-aop.xml
|_manifest.mf
|_ loadindicator.sar
|_ META-INF
|_ jboss-service.xml
|_manifest.mf
|_ classes (load indicator java classes)
|_ loadindicator-monitor-service.xml
Contents of application.xml
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"><display-name>Mands Load Indicator</display-name>
<module>
<ejb>loadindicator.sar</ejb>
</module>
</application>Contents of loadindicator-monitor-service.xml
<mbean code="uk.co.choice.mands.jmx.GaugeMonitor"
name="Mands:service=LoadMonitor"><depends>Mands:service=LoadIndicator</depends>
<attribute name="ObservedObject">Mands:service=LoadIndicator</attribute>
<attribute name="ObservedAttribute">TotalMessageDepth</attribute>
<attribute name="GranularityPeriod">1000</attribute>
<attribute name="NotifyHigh">true</attribute>
<attribute name="NotifyLow">true</attribute></mbean>
</server>
Thanks,
Prakash