Hi,

In Magnolia 4.5+ it might be possible to inject the contextPath using Juice?
Adding a parameter is not a very nice solution if the scheduler command needs 
to be installed in different instances with different contextPaths...

Regards from Vienna,

Richard

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Vivian Steller (via Magnolia Forums)
Gesendet: Freitag, 14. Dezember 2012 11:16
An: Magnolia User List
Betreff: [magnolia-user] Re: How to get context path?

In fact, Frank is right. The easiest way is to add a parameter within your 
command configuration.

Scheduler commands are run automatically by Magnolia in SystemContext, that is, 
without an associated WebContext. Hence, there is neither a request nor a 
context path to access. Consequently, a call to MgnlContext.getContextPath() 
will fail in scheduled commands.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=6ae3bb79-9257-448d-bc8e-04e99508f43d


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





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

Reply via email to