simple start up service based on mbeans
smiley Jun 1, 2002 12:00 AMAdrian,
thanks for the advice, the server now seems to pick up the classes okay. There is still something wrong, though. I now get the following complaint:
javax.management.NotCompliantMBeanException: example.StartUp does not implement the example.StartUpMBean interface or the DynamicMBean interface
at com.sun.management.jmx.Introspector.testCompliance(Introspector.java:130)
at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:759)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
at org.jboss.Main.(Main.java:187)
at org.jboss.Main$1.run(Main.java:121)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:117)
[Configuration] Could not create MBean DefaultDomain:service=StartUp(example.Startup)
[Configuration] javax.management.NotCompliantMBeanException: example.StartUp does not implement the example.StartUpMBean interface or the DynamicMBean interface
[Configuration] at com.sun.management.jmx.Introspector.testCompliance(Introspector.java:130)
[Configuration] at com.sun.management.jmx.MetaData.testCompliance(MetaData.java:132)
[Configuration] at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:507)
[Configuration] at org.jboss.configuration.ConfigurationService.create(ConfigurationService.java:340)
[Configuration] at org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:271)
[Configuration] at java.lang.reflect.Method.invoke(Native Method)
[Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Configuration] at org.jboss.Main.(Main.java:209)
[Configuration] at org.jboss.Main$1.run(Main.java:121)
[Configuration] at java.security.AccessController.doPrivileged(Native Method)
[Configuration] at org.jboss.Main.main(Main.java:117)
Any ideas?
Thanks,
David