[jboss-user] [EJB 3.0] New message: "Re: Entity Manager with BMT and Transaction Timeout"

jaikiran pai do-not-reply at jboss.com
Fri Feb 26 01:39:47 EST 2010


User development,

A new message was posted in the thread "Entity Manager with BMT and Transaction Timeout":

http://community.jboss.org/message/528658#528658

Author  : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran

Message:
--------------------------------------------------------------
I would have expected the global transaction timeout value to apply for UserTransaction too. Can you try explicitly setting the timeout in your code, before starting the transaction? Like this:
 
// set timeout (1 hour)
m_userTransaction.setTransactionTimeout(3600);
m_userTransaction.begin();
 
Account account = m_entityManager.find(Account.class, accountId);
 
...
 
 
 
account.getRelatedAccounts();
 

 

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/528658#528658




More information about the jboss-user mailing list