Hi,

You can create the parser before creating the thread and pass it as
parameter to the thread.

On Thu, Apr 12, 2012 at 8:31 PM, Ashoka Upadhya <[email protected]> wrote:
> In our case Markup for the component comes from CMS. We want to parse
> the markup and cache Markup object in memory.
>
> Parsing happens asynchronously (depending on the content change in CMS)
> in a separate thread from the request thread.
>
>
>
> We have custom MarkupParser that extends AbstractMarkupParser but
> AbstractMarkupParser has dependency on Application (In the constructor
> it is getting MarkupSettings from application).
>
>
>
> Since we are doing parsing in a different thread which doesn't have
> application set in the thread context., Is there any other way to parse
> without setting dummy application object in the thread context?
>
>
>
> Regards,
>
>
>
> Ashoka Upadhya
>
> Art.com
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to