This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Scheduling Tasks in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Scheduling Tasks in JBoss" Watch "Scheduling Tasks in JBoss" New topic
Author

Scheduling Tasks in JBoss

Ary Junior
Greenhorn

Joined: Aug 27, 2004
Posts: 3
Hi, they see below the definition of my MBean that implements the interface org.jboss.varia.scheduler.Schedulable on file jboss-service.xml:

<mbean code="org.jboss.varia.scheduler.Scheduler" name="br.com.valoriza.alertas:service=AlertasStockScreener">
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableClass">br.com.valoriza.alertas.mbean.AlertasStockScreener</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">60000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
</mbean>

Through the "JMX MBean View" I can modify the properties defined in the XML, such as "SchedulePeriod" or "StartAtStartup". My problem is that these modifications do not persist when the JBoss is restarted. Is it impossible? Another question: How I could define other properties beyond these?

[]s

Ary Junior
 
Have you checked out Aspose?
 
subject: Scheduling Tasks in JBoss
 
jQuery in Action, 3rd edition