java - Finish work on EJB3 even after timeout -
I am designing webservices for the order system. When I got an order, then it has to add nearly 10,000 institutions to the table. It may be more, but as I understand that this work will not end in the time of transaction and time will be completed and all the work Roll back. But I want the transaction time to end this work even after the past. How can I get this? We are using EJB3 in Weblogic 11G with JDK 1.6.25.
You can end the transaction time: Services -> JTA, timeout seconds set the ultimate value By default this value is 30 seconds.
If your transaction can be too long you can change your app architecture. You can insert rows without a transaction (but you can lose your data stability) or use book updates with a portion of the transaction.
You can use the @transquaction to insert rows without a transaction.
Comments
Post a Comment