Thanks for your reply Dave,
I'll have to solve it that way... but I wanted to use the init() method and
so avoid the "if()" checking for the EJBS existance... 
Without any info about the environment I don't really get how that method is
useful for anything.

Thanks,
Ignacio



newton.dave wrote:
> 
> 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 "pattern" and only get it the first time. Since 
> interceptors aren't re-instantiated this should work fine.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> 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 - 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