1 Reply Latest reply on Oct 16, 2002 12:27 PM by Adrian Brock

    multiple scheduler instances

    Tom Newbie

      Hi,

      I am using JBoss 2.4.3 and have just started using the MBean sscheduler service. I have it working fine using one scheduler, but when I try and use more I get problems. My trouble is that I do not know the syntax to create more than one instance and can find nothing on this is in the docs and forums. Below is the configuratio I am using and the exception that is thrown. If anyone has any ideas how to fix this I would be very grateful if they let me know
























      javax.management.InstanceAlreadyExistsException: DefaultDomain:service=Timer at com.sun.management.jmx.RepositorySupport.addMBean (RepositorySupport.java:134) at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:23 at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:388) at org.jboss.util.Scheduler.startService(Scheduler.java:522) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationSer
      :836) at $Proxy0.start(Unknown Source) at org.jboss.util.ServiceControl.start(ServiceControl.java:81) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.Main.(Main.java:221) at org.jboss.Main$1.run(Main.java:127) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:123)


      Thanks

      Tom