> public boolean execute(Context context) throws Exception {
> System.out.println("My Command Class is getting called");
> Session session = MgnlContext.getJCRSession("data");
This is most likely the cause of your problem. MgnlContext is ThreadLocal and
is set per request by FilterChain. Scheduled commands are executed by Scheduler
and do not go via filter context, so they do not have context set. This is why
Command gets passed context in as parameter. Try to use it instead:
Session session = context.getJCRSession("data");
HTH,
Jan
----------------------------------------------------------------
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]>
----------------------------------------------------------------