Envoyé : mardi 20 janvier 2009 22:10
À : Struts Users Mailing List
Objet : Re: Injecting in Interceptors
2009/1/20 Ignacio de Córdoba :
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 th
z.len...@googlemail.com]
Envoyé : mardi 20 janvier 2009 22:10
À : Struts Users Mailing List
Objet : Re: Injecting in Interceptors
2009/1/20 Ignacio de Córdoba :
> 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
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
>
>
2009/1/20 Ignacio de Córdoba :
> 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() get
-
> 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-tp21570523p21571306.html
Sent from the Struts
Ignacio de Córdoba wrote:
Hi Musachy and thanks for your reply but that static invocation in that class
is not working if called from an interceptor or, at least, from the init()
method of the interceptor.
You don't need to get JNDI resources on every request--use the lazy
initialization "patt
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,
>>> Ignac
Bs 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
>
x27;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.
>
>
> -
nfo 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
10 matches
Mail list logo