• 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

my scheduler was not called?

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Folks,

I set up the following scheduler attributes. then started the jboss server before 12:00 am. I expected scheduler would be called at 12:00 am. but it was not called. Did I miss something in the following confg file? my scheduler is fine because when I set StartAtStartup=true, then restarted server, my scheduler was called.
Thanks,

chwang

Code:

<server>
<mbean code="org.jboss.varia.scheduler.Scheduler"
name=":service=MyAppScheduler">
<attribute name="StartAtStartup">false</attribute>
<attribute name="SchedulableClass">MySchedulableImpl</attribute>
<attribute name="InitialStartDate">12/3/2008 12:00 am</attribute>
<attribute name="SchedulePeriod">60000</attribute>
<attribute name="InitialRepetitions">-1</attribute>
</mbean>
</server>
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a pity that your scheduler makes you enter dates in formats that are easy to misinterpret. If it required a standard (ISO-8601) format then instead of using 12/3/2008 12:00 am, which might mean noon or midnight, you would use 2008-12-03T00:00, which is unambiguous.
 
chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much.

Chaohua
reply
    Bookmark Topic Watch Topic
  • New Topic