This content has been marked as final. Show 2 replies
Sorry, my fault!
I called a local method using
this.increaseBalance() inside a CMP Entity Bean, so there was no possibility for the container to create a new Transaction for Method "increaseBalance()" in this case!
I tried to use CMT on my EJB but did not get rollback when i have forced one method to error.
Client (without transaction) calls
Method1 (with transaction attribute RequiresNew)
Method2 (with transaction attribute Required)
Method2 returns with error.
Method3 (with transaction attribute Required
Method3 returns without error.
error in Method2 should cause a rollback of Method1, but it did not happend at all.
Please advise as how it is done. Is there anythinh i need to do with my code?