Context is set for each thread and can't be shared. So when you create your own 
thread you need to "replay" all the operations done by the filter chain to 
setup context.
It might be easier to use scheduler module to execute such op and let Magnolia 
to set the context for you.

HTH,
Jan

On Apr 23, 2012, at 12:04 PM, Tullio Bettinazzi wrote:

> 
> Nobody can help ?
> Tks
> Tullio
> 
> Frank Luo (via Magnolia Forums) wrote:
>> 
>> I've a long running operation when I try to create/update users from an
>> external source.
>> I created my own separate thread and tried to run the long running in it,
>> howewer I got an error telling me the MgnlContext is not set in such
>> thread.
>> Is there any way to set it ?
>> Any other suggestion?
>> Tks
>> Tullio
>> 
>> -- 
>> Context is everything:
>> http://forum.magnolia-cms.com/forum/thread.html?threadId=6f69a313-d761-4baf-86ea-a676106033f6
>> 
>> 
>> ----------------------------------------------------------------
>> 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]>
>> ----------------------------------------------------------------
>> 
>> 
>> 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/MgnlContext-not-defined-i-my-thread-tp33700783p33732121.html
> Sent from the Magnolia - User mailing list archive at Nabble.com.
> 
> 
> 
> ----------------------------------------------------------------
> 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