This content has been marked as final.
Show 4 replies
-
1. Re: EJB2 Interceptor Response Values
starksm64 Mar 8, 2006 11:35 AM (in response to tterm)You have to return a value that is unwrapped as the legacy ejb invocation framework has no notion of reply context data.
-
2. Re: EJB2 Interceptor Response Values
tterm Mar 8, 2006 12:58 PM (in response to tterm)Hello Scott,
Thank you for your fast response.
But I don't understand exactly what you mean or how it works. What does this mean to return an unwrapped value. Maybe a small example would help.
Thanks in advance
Thomas -
3. Re: EJB2 Interceptor Response Values
tterm Mar 9, 2006 8:35 AM (in response to tterm)Hello,
I tried the following approach:
I have a wrapper bean class where I can put in the original result from the bean and some other return values which are interessting for the client interceptor. The client interceptor then put the original response object back to the interceptor response.// ClientInterceptor invoke method public Object invoke(Invocation invocation) { Object obj = getNext().invoke(invocation); if (obj instance of ResultBean) { ResultBean resultBean = (ResultBean)obj; obj = resultBean.getOriginalResult(); } return obj; }
Is this a possible solution without to violate something in JBoss?
Thanks in advance
Thomas -
4. Re: EJB2 Interceptor Response Values
starksm64 Mar 12, 2006 1:05 PM (in response to tterm)Yes, this is what I meant by unwrappng the value in the client interceptor.