Preventing rollback from probogating back


EJB programming & troubleshooting: Preventing rollback from probogating back

  1. Preventing rollback from probogating back (1 messages)

    I have a situation:

    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.
  2. hi..
    for rolling back the transcations, there is a method in EJBContext.setRollbackOnly(). it will rollback the entire transactions that started in that method.