EJB transaction does not rollback stored procedure changes [message #667469] |
Thu, 28 April 2011 19:05  |
Eclipse User |
|
|
|
We have a stored procedure (SP) that is called inside EJB. The SP inserts and selects records, and returns the result of the select to a server side. It does not manage transaction, so it is a responsibility of EJB. Nevertheless, the SP gets committed though EJB transaction is rolled back.
We tried both container and bean managed transaction (via UserTransaction) and result was the same. When in debug mode we can see that changes are pushed to database before end of EJB-method is reached.
If we do standard JDBC transaction within our EJB the SP is rolled back, but we don't want to sacrifice JPA over JDBC.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03428 seconds