I face the following issue with OpenEjb-Lite-4.5.2 and on websphere.

Use case

Ejb1 method invoked -> Decorator on Ejb2 method fires event ->  Observer
(@Observes(during=TransactionPhase.IN_PROGRESS))
invokes Ejb2 method.

I see on websphere 8.0.0.1:
----------------------------

1. Interceptor on Ejb1 is entered
2. Decorator is entered  (invokes on delegate)
3. Ejb1 method is entered
4. Decorator is reentered (Fires the event, observer invokes method on EJB2)
5. Interceptor on Ejb2 is entered
6. Ejb2 method is entered
7. Interceptor on Ejb2 is left
8. Decorator is reentered
9. Decorator is left
9. Interceptor on Ejb1 is left

On openEjb-Lite-4.5.2:
----------------------
1. Decorator is entered (invokes on delegate)
2. Interceptor on Ejb1 is entered
3. Ejb1 method is entered
3. Interceptor on Ejb1 is left
4. Decorator is reentered (Fires the event, observer invokes method on EJB2)
5. Interceptor on Ejb2 is entered
6. Ejb2 method is entered
7. Interceptor on Ejb2 is left
8. Decorator is reentered
9. Decorator is left

I am a little confused right now, which is the expected behaviour ?
I now that the Interceptor stack is invoked before the decorator stack but
this confuses me a little bit. 
Is this a Websphere issue with a old OWB version or a bug in the
openejb-lite-4.5.2 used own version ?

Thanks in advance 




--
View this message in context: 
http://openejb.979440.n4.nabble.com/Ejb-Service-Decorator-Observer-tp4663957.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to