Hi there,
I am developing a Authorization interceptor and need to perform a JNDI
lookup to get some Stateless EJBs from JBoss.

My problem is that this interceptor init() method gets no parameters. I need
to get at least the ServletContext of the web application to specify the
main JNDI lookup name. (EJBs might be deployed in different JNDIs dirs
depending on which application I deploy them).

Anybody has an idea on how can I get info about ServletContext in the init()
method of an interceptor? I'd like to lookup EJBs there and not lookup them
for every request (I know I can get the info I need from ActionInvocation
object that every intercept() gets)

I'm using Struts 2.1

Thanks for any ideas,
Ignacio
-- 
View this message in context: 
http://www.nabble.com/Injecting-in-Interceptors-tp21570523p21570523.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to