-
1. Re: Multiple Scheduler
schaefera Aug 1, 2002 9:31 PM (in response to rmunoz)Hi
I just wrote a new Scheduler for JBoss 3.1 and as soon
as this one is available it will go back to JBoss 2.4.x but I know about some issues with the old Scheduler.
Try to use a different name for the MBean in the second Scheduler.
Andy
BTW This is the wrong forum anyway !!! -
2. Re: Multiple Scheduler
rmunoz Aug 2, 2002 7:49 AM (in response to rmunoz)First of all, sorry for post in this forum but i don't find the forum of this topic. Almost all of Scheduler question are here.
I try to rename the second mbean and althougth works it doing in weird ways (both scheduler are called in the same time, etc.) and there are a error in the init of Jboss.
This is my jboss.jcml code:
<!-- ==================================================================== -->
<!-- Scheduler Service -->
<!-- ==================================================================== -->
<!-- Uncomment this to enable Scheduling -->
<!-- -->
<!-- Uncomment this to enable Scheduling -->
<!-- -->
This is the error that happens in the init of JBoss :
12:47:11,590,Scheduler] JBoss Scheduler Service 'scheduler::server=Scheduler' bound to scheduler::server=Scheduler
[12:47:11,600,Default] javax.management.InstanceAlreadyExistsException: DefaultDomain:service=Timer
[12:47:11,610,Default] at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.java:134)
[12:47:11,620,Default]
[12:47:11,620,Default] at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:2352)
[12:47:11,640,Default]
[12:47:11,640,Default] at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:388)
[12:47:11,650,Default]
[12:47:11,650,Default] at org.jboss.util.Scheduler.startService(Scheduler.java:607)
[12:47:11,660,Default]
[12:47:11,660,Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
[12:47:11,670,Default]
[12:47:11,680,Default] at java.lang.reflect.Method.invoke(Native Method)
[12:47:11,680,Default]
[12:47:11,680,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[12:47:11,690,Default]
[12:47:11,690,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[12:47:11,700,Default]
[12:47:11,710,Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
[12:47:11,710,Default]
[12:47:11,720,Default] at $Proxy0.start(Unknown Source)
[12:47:11,720,Default]
[12:47:11,730,Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
[12:47:11,730,Default]
[12:47:11,740,Default] at java.lang.reflect.Method.invoke(Native Method)
[12:47:11,740,Default]
[12:47:11,740,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[12:47:11,750,Default]
[12:47:11,760,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[12:47:11,760,Default]
[12:47:11,770,Default] at org.jboss.Main.(Main.java:208)
[12:47:11,770,Default]
[12:47:11,770,Default] at org.jboss.Main$1.run(Main.java:110)
[12:47:11,780,Default]
[12:47:11,780,Default] at java.security.AccessController.doPrivileged(Native Method)
[12:47:11,790,Default]
[12:47:11,790,Default] at org.jboss.Main.main(Main.java:106)