[jboss-user] [Management, JMX/JBoss] - Re: Receiving notification from other MBeans
dimitris@jboss.org
do-not-reply at jboss.com
Thu Jun 4 06:31:27 EDT 2009
Your subscription list is wrong, so try an mbean descriptor like this:
| <mbean code="com.sample.jmx.StartupService" name="com.packtpub.jmx:service=StartupClass">
| <attribute name="Message">Hello World</attribute>
| </mbean>
|
| <server>
| <mbean code="jboss.example.NotificationListener"
| name="jboss.example:name=NotificationListener">
|
| <attribute name="SubscriptionList">
| <subscription-list>
| <mbean name="com.packtpub.jmx:service=StartupClass"/>
| </subscription-list>
| </attribute>
| </mbean>
| </server>
|
Your StartupClass does not emit any custom notification to show in your listener. The only notification that should come up are the ones from the base ServiceMBeanSupport class.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235245#4235245
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235245
More information about the jboss-user
mailing list