From: marc f. <nu...@jb...> - 2004-02-08 15:51:19
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820647#3820647 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820647 on the topic of return interceptors. Try catch is ok but the important point is interceptor variable visibility across in and out. For example think TX interceptor, the behavior of the interceptor on the OUT part depends on the IN part (was there a transation in a REquires NEW mode?). If you don't have one instance dealing with that, you are stuck with stuffing that information in the invocation object and retrieving it on the way out. IN/OUT separation of interceptors make it just more complex to write for not functional advantage (that I can see) |