I have a situation:
case:
Need to insert 10k records into the DB.
However, during the process, should there be any error, the rollback should not propogate all the way to the client. It should ignore the process while the logger will log down the exception.
I have an stateless session bean B1. It will call the method update();
This method call will call another private nethod private_updateAll() which will call the persistant layer for updating to db.
This private_update()'s transaction attribute is "RequiresNew"
Please advice me on this. Thanks.
-
Preventing rollback from probogating back (1 messages)
- Posted by: Jimmy Tong
- Posted on: December 03 2002 08:38 EST
Threaded Messages (1)
- Preventing rollback from probogating back by kannan kanagaraj on December 03 2002 23:23 EST
-
Preventing rollback from probogating back[ Go to top ]
- Posted by: kannan kanagaraj
- Posted on: December 03 2002 23:23 EST
- in response to Jimmy Tong
hi..
for rolling back the transcations, there is a method in EJBContext.setRollbackOnly(). it will rollback the entire transactions that started in that method.