[jboss-user] [EJB 3.0] - Re: ejb3 timers persistence

galo.navarro do-not-reply at jboss.com
Tue Sep 26 05:36:23 EDT 2006


I posted the same question a few days ago, it seems persistence is to be supported in the next major release.

I'm getting around the problem with a scheduler service. This goes to the jboss-service.xml file


  |   <mbean code="org.jboss.varia.scheduler.Scheduler" name="jboss:custom=Scheduler">
  |     <attribute name="StartAtStartup">true</attribute>
  |     <attribute name="SchedulableMBean">jboss:custom=MyBean</attribute>
  |     <attribute name="SchedulableMBeanMethod">process()</attribute>
  |     <attribute name="InitialStartDate">NOW</attribute>
  |     <attribute name="SchedulePeriod">60000</attribute>
  |     <attribute name="InitialRepetitions">-1</attribute>
  |   </mbean>
  |  

and process() is run every minute on MyBean

I believe this can be configured to run methods on a simple POJO etc. but haven't tried. Let me know if you need more details and I will post a couple of links.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974155#3974155

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974155



More information about the jboss-user mailing list