[jboss-user] [EJB 3.0] - transaction timeout for managed conversation transaction

nes do-not-reply at jboss.com
Fri Mar 14 07:09:56 EDT 2008


Hello, I have this snippet:


@Asynchronous
public void rebuildIndex() {
FullTextSession session = (FullTextSession) entityManager.getDelegate();
Transaction userTx = session.beginTransaction();
userTx.setTimeout(1000000000);
...
}

Now, the problem is that the setTimeout call fails, because you may not call it for managed transactions. The default setting appears to be 3 minutes, until it times out. But, normally, this method will take about 20 minutes. Maybe even more. So, how can I change the timeout?

Thanks in advance!

niko

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

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



More information about the jboss-user mailing list