This content has been marked as final. Show 2 replies
I just want to execute a class/method by using a timer in jboss 3.2.5. I tried some tutorials with no positive result.
I ve done in the jboss-service.xml:
<mbean code="javax.management.timer.Timer" name="DefaultDomain:service=timer"/>
<!--<mbean code="org.jboss.varia.scheduler.Scheduler" name="acme:service=Scheduler">
<attribute name="SchedulableClass"><MY CLASS></attribute>
<mbean code="javax.management.timer.Timer" name="jboss:service=Timer"/>
But I get always error messages like:
java.lang.ClassNotFoundException: No ClassLoaders found for:...
Thats maybe because of the system does not already loaded the class in my deploy file. Does anyone has an idea?
If you touch (Linux) or resave the scheduler-service.xml file after JBoss has finished starting, you'll likely get your services started.
Hope this helps.