Add this entry to jboss-app.xml for your EAR
<jboss-app>
my-scheduler-service.xml
</jboss-app>
Keep my-scheduler-service.xml directy under the EAR with entries like this:
<?xml version="1.0" encoding="UTF-8"?>
true
com.mybizz.scheduler.NotificationSchedule
0 <!-- start now --> 600000 <!-- milliseconds -->
-1
Thats all there is to it. The SchedulableClass can look up and invoke EJB,etc.
If you try to keep the *-service.xml outside of EAR, u will have to deal with
classpath issues.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995860#3995860
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995860
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user