tried everything, but it seems not to be possible in ejb3 ...

unfortunatelly  javax.ejb.SessionSynchronization is just useable in statefull 
session-beans, but I have stateless session-beans ...

The problem arises in combination with cascading storing of entities that is 
supported in ejb3 ==> when a statless session-bean updates an entity with 
relations you have no chance to get a clue which objects have been modified!

You might use ejbs PreUpdate to get an idea which object has been updated, but 
that is not called synchronously ==> in other words the callback happens after 
you left the stateless function call (so no way to be manipulated within an 
interceptor !). You can also not implement some fiunctionality in the 
PreUpdate-Call itself because you are not allowed to use entityManagers there 
--> so I hoped to solve it with AOP - but NOPE ;-)


Anyhow - thx


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992739#3992739

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992739
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to