[jboss-user] [EJB/JBoss] - Re: ejbTimeout called when Timer.cancel is called

icruz do-not-reply at jboss.com
Fri Aug 3 07:50:54 EDT 2007


Hello,

I have the same problem with JBoss 4.2.1GA. I have a @Service EJB, in start() method I create a EJB timer, and it works.

The first problem is when I shutdown jboss, in the stop() method of the Service EJB I call the method timer.cancel(), and it throws an exception with the message "timer was canceled", but the timer remains in the database (if I call stop() from the JMX console, it is cancelled correctly)

The second problem is when I restart jboss, in the start() method of my service EJB, the function timerService.getTimers() returns an empty collection (even the timer *is* in the database), and when I try to create the timer it fails with a "duplicate key" exception from MySQL driver

Thanks in advance,
Isaac

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070518#4070518

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070518



More information about the jboss-user mailing list