I am using a client side EJB interceptor. I intercept the call to the home object using Interceptor.invokeHome, i would then like to store some context which i can access when I intercept methods on the resultant EJB. I.e in the Interceptor.invoke method.
I was thinking of having a static Hashtable. I would then key on something unique to the Bean. This is as far as i've got, I can't find anything to key on.
Any help would be grately apreciated,
I have solved the problem:
invocation.getObjectName() is unique per bean. it can be called when intercepting calls to the home and to the bean. Thus I have a static hashtable, which I use the invocation.getObjectName(), to key on.