users@glassfish.java.net

EJB Timer help

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Sep 2009 07:54:11 PDT

Since I've created and developed my timer bean. I've found a problem with it. Right now our clients wants a enable/disable ability in the admin console. So they want to start and stop the bean when they can.

During the test stages. I'm getting this. Let's say if I wanted the bean to go at 12:30 on the same day.

First time -> 12:30:00 -> correct... which this is what I want

Running the client again.
Second time -> bean is cancel(timer is canceled but not the timerService.

Running the client for a third time(about a 8 second relapse).
Third time -> 12:30:08 -> adding seconds

I'm using TimerService which I don't think there is a way to do this. However, I'm wondering if there is a way to keep this from happening. I'm running out of ideas on my end here. Can anyone explain or help me with this?

I'll post the code upon request...
[Message sent by forum member 'tannic2k7' (daniel.crain_at_us.army.mil)]

http://forums.java.net/jive/thread.jspa?messageID=363381