Ok, following the post that I reference, I was able to implement a client interceptor to
capture the client's IP address and add it to the invocation object using setValue().
Then I was able to create a server interceptor, modeled after the LogInterceptor (i.e.,
extends from AbstractInterceptor), which can retrieve the IP address from the invocation
object using getValue(). So far, so good.
Now, how does that help me? I need to get that value into something that the EJB business
method can access, which then needs to pass it on to a corresponding MBean method, again
in some transparent fashion. That is, I don't want to modify the 60 business methods
in the stateless session EJB or the corresponding 60 business methods in the MBean.
Ideally, the MBean could get hold of the invocation object, but I don't know if that
is possible.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170018#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...