• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scheduling Tasks in JBoss

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic