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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...