You may use a servlet context listener...

Get the spring applicationContext and add the Bayuex Service been to it
when it context is initialized

http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html



On Tue, 2010-08-17 at 08:06 -0700, fachhoch wrote:

> I wan to inject  Bayeaux service  in a  pojo  initialized by spring , please
> sugest me how  can I get servlet context in a spring bean ?
>  


Reply via email to