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