Hi Matteo,

It's something we've needed a few times, but somehow this hasn't made its way 
to the codebase yet.

One approach would be to customize/patch MgnlServletContextListener to keep a 
reference to it, as an attribute of the Magnolia SystemContext, for example.

But depending on the actual needs, you might be better using a "fake" 
ServletContext to pass configuration values to the legacy code in question. 
(implement a SC which wraps a Magnolia configuration node, for example)

HTH,

-g

On Jul 20, 2010, at 17:12, Matteo Pelucco wrote:

> 
> Hi Magnolians,
> is it possible to get a ServletContext inside (a.k.a. during execution) of a 
> command triggered by a scheduled job?
> 
> Really neboulous way of doing, I know, but we are facing with some legacy 
> codes that need ServletContext to be initialized...
> 
> Matteo
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to