Hi, Gary.

Gary Gregory <[EMAIL PROTECTED]> wrote on 2008-04-15 04:13:50 
PM:
> Is it safe to reuse a Transformer in a multi-threaded environment? 
> If not, it sounds like it worth caching Transformer in a ThreadLocal
> for example.

No, it's not safe to use the same Transformer object on different threads. 
 If you're going to cache it, it should be in a ThreadLocal as you 
suggest.  Thanks for clarifying my earlier comment about reusing 
Transformer instances!

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro
XML Transformation & Query Development
IBM Toronto Lab   T/L 313-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]

Reply via email to