struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignacio de Córdoba <icord...@skios.es>
Subject Re: Injecting in Interceptors
Date Tue, 20 Jan 2009 22:52:25 GMT

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 <icordoba@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message