Hi,
I saw that plugin but it solves the "application name" subdir to be supplied
in the JNDI lookup with a parameter in the Annotation, which makes it code
dependant. I need to get that data from the ServletContext (application
name) or at least a webapp init parameter.
As I see it, the lazy load aproach seems the best for the moment.


Lukasz Lenart wrote:
> 
> 2009/1/20 Ignacio de Córdoba <icord...@skios.es>:
>> 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)
> 
> Did you try to use that plugin [1], you can ever base on it, build
> your own specific solution
> 
> [1] http://code.google.com/p/struts2ejb3/
> 
> 
> Regards
> -- 
> Lukasz
> http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Injecting-in-Interceptors-tp21570523p21573532.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