Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Timer always expires

 
Ranch Foreman
Posts: 1897
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a deployment descriptor, ejb-jar.xml to configure a timer using Ivan's example.
I tried this :



Info: Portable JNDI names for EJB Scheduled1StatelessSessionBean : [java:global/TimerExample1/Scheduled1StatelessSessionBean!com.ivan.scbcd6.Scheduled1StatelessSessionBean, java:global/TimerExample1/Scheduled1StatelessSessionBean]
Info: Schedule: 16/20 # * # * # * # * # * # * # null # 1427471400000 # 1427471460000 # true # scheduledMethod2 # 0 already expired
Info: TimerExample1 was successfully deployed in 374 milliseconds.



For the <start> and <end> elements, I put a future time. But I don't know why it always says "Schedule : .... already expired".
 
Himai Minh
Ranch Foreman
Posts: 1897
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding to the previous post, at the time of the writing, it was March 27th at 15:45pm.

I got the "schedule already expired" issue. Maybe, Glassfish has a system clock that has already passed this 15:50 pm.

I set the start/end time to a more future time, such as this :


The schedule already expired message is not there anymore. The timer has not expired at this time yet.

I think the clock in the Glassfish is not set probably. The clock in Glassfish is ahead of my system clock in my computer, as I guess.

Any idea how to set the clock in Glassfish, so that it is consistent with the current time?
 
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic