Forums Register Login

Section 4.3.12 of EJB 3.0 Core Specs

+Pie Number of slices to send: Send
Hi,

Got a question.
Hope anyone can help me.

In Section 4.3.12 (Business Method Interceptor Methods for Session Beans) of EJB 3.0 Core Specs, it says

"The AroundInvoke interceptor methods are supported for session beans. These interceptor methods may be defined on the bean class and/or on interceptor classes, and apply to the handling of the invocation
of the business methods of the bean�s business interface, component interface, and/or web service endpoint.

For stateful session beans that implement the SessionSynchronization interface, afterBegin occurs before any AroundInvoke method invocation, and beforeCompletion after all AroundInvoke invocations are finished."

My understanding is that "beforeCompletion" is not triggered by the invocation of the business methods and so why does "beforeCompletion" occur after all AroundInvoke invocations are finished?

Please help?
Thanks!!
+Pie Number of slices to send: Send
 

My understanding is that "beforeCompletion" is not triggered by the invocation of the business methods and so why does "beforeCompletion" occur after all AroundInvoke invocations are finished?


A transaction can be set on a method of a bean's business interface, so I think that it means that for a transaction that ends at the end of the method, the beforeCompletion will occur after all AroundInvoke invocations are finished.
+Pie Number of slices to send: Send
Hi Christophe,

Thanks for your explanation!

Meng Tan
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 536 times.
Similar Threads
Doubt in SessionBean contract(ejb 3.0 core)
Doubts regarding javabeat questions
Stateless session beans and Transactions
how many interceptor method in a Bean class ?
EJB Core spec 12.3.1 Multiple Business Method Interceptor Methods
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:38:10.