> Thanks a lot, this is exactly what I was searching for.
> Now I only need to find out how to intercept remote calls from the
> servlet to the EJBs and attach some context information.
> Not sure if CDI/EJB interceptors are able to handle this... from what
> I know they come to play before calling the method on the server that
> hosts the EJB.
After a lot of searching it seems that there is no easy way to attach
context information to a remote EJB call.
Interceptors run on the same server where the EJB is located, not on the client.
Does this mean Shiro is not useable in an (remote) EJB context?
-ps