aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3.0 spec - PostX callback methods and transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "EJB 3.0 spec - PostX callback methods and transaction" Watch "EJB 3.0 spec - PostX callback methods and transaction" New topic
Author

EJB 3.0 spec - PostX callback methods and transaction

Henrique Sousa
Ranch Hand

Joined: Apr 29, 2004
Posts: 92
Hello, ranchers!
As I read the spec for some clarification I found this:
3.5.6 - Exceptions
Lifecycle callback methods may throw runtime exceptions. A runtime exception thrown by a callback method that executes within a transaction causes that transaction to be rolled back. No further lifecycle callback methods will be invoked after a runtime exception is thrown.

The question is: does this implies that PostUpdate and PostPersist callbacks will be contained in the active transaction (if any)? Or is it anywhere else explicitly stated?

[ May 29, 2006: Message edited by: Henrique Sousa ]
[ May 29, 2006: Message edited by: Henrique Sousa ]

Henrique Sousa<br />SCJP 1.4<br /> <br />All men die, not all men really live - Braveheart, 1995
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: EJB 3.0 spec - PostX callback methods and transaction
 
Similar Threads
Can't callbacks throw checked exceptions?
Callback Interceptor Methods
488/158 ICE questions & 488/155 resources page
Enthuware Explanation Doubt-23
Exceptions in lifecycle callback methods (I)