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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...