[jboss-user] [EJB/JBoss] - Re: Scheduler vs. EJB Timer Service

t_kishore do-not-reply at jboss.com
Fri Dec 22 08:23:42 EST 2006


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



More information about the jboss-user mailing list