Is there a way to retrieve the active SessionContext from within a custom Interceptor?
I have a static method I would like to make avaliable at any point in some session beans that evaluates additional credentials stored with the currently authenticated subject.
I would like to initialize the ThreadLocal or TransactionLocal variable of this static method uses in an interceptor with the current SessionContext so each method in these session beans is not required to initialize it with the SessionContext.
Is this possible?
If your past the instance acquisition interceptor then its available from the Invocation.getEnterpriseContext() method.