[jboss-user] [JBoss Seam] - Re: Transaction Timeout
straubp
do-not-reply at jboss.com
Mon Jul 16 11:37:02 EDT 2007
Unfortunately I can't switch to Seam 2 yet (But I'm really looking forward to).
The other approach doesn't have any effect. Here is what I do:
| @Stateless
| @TransactionManagement(TransactionManagementType.BEAN)
| @Name("fillDatabase")
| public class FillDatabaseAction implements FillDatabase {
|
| @Resource
| private UserTransaction userTransaction;
|
| ...
|
|
| public void execute() {
|
| try {
| userTransaction.setTransactionTimeout(60*60);
| userTransaction.begin();
| doIt();
| userTransaction.commit();
|
| ...
|
Thanks for your quick reply!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064615#4064615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064615
More information about the jboss-user
mailing list