[jboss-user] [EJB/JBoss] - TimerService in Transaction?
snarff
do-not-reply at jboss.com
Mon Mar 3 19:52:27 EST 2008
I'm stuck on the following: I have two message-driven beans MDB1 and MDB2 connected through two JMS queues (each MDB has its own queue). MDB uses a timer service to poll a database every now and then. Both beans have Container as its transaction type, with transaction attribute Required for their method onMessage.
Whenever I happen to erroneously create a second timer for MDB2, I see that new instances of MDB2 are created (I'm logging the ejbCreate method) which finally hog my server, bringing it to a grinding halt.
I suspect duplicate MDB2 beans are created though transaction rollback, but as I don't see any other error messages, I'm completely clueless.
Also, I'd like to associate one single timer with MDB2, but I cannot seem to create it in the ejbCreate method. What is the standard approach here?
Any help is appreciated...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133763#4133763
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133763
More information about the jboss-user
mailing list