This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB2.1 Timer Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB2.1 Timer Service" Watch "EJB2.1 Timer Service" New topic
Author

EJB2.1 Timer Service

Bhavesh Ravjee
Greenhorn

Joined: Jun 15, 2004
Posts: 11
Hi,

I am using EJB2.1 with Jboss 4.x.

With EJB2.1 timers are only persisted when a server crash occurs. Normal soft shutdowns remove timers from the db.

I have tried overriding deleteTimer method of the GeneralPurposePersistencePlugin class to not do anything. However the drawback is that if a timer executes, this method is called, hence the timer is not removed from the db. This means when the server starts up, the timer will be rescheduled again.

Any ideas on how to get timers to persist even during soft shutdowns.

Thanks!


With great power comes great responsibility!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB2.1 Timer Service
 
Similar Threads
EJB Timers
From where ejb timers are restored in jboss 4.0 ?
getting time remaining of stateful ejb
EJB Timers in JBoss
Java EE timer service and periodical jobs