Hi-

Thanks.  However, reusability doesn't necessarily mean thread-safe.

-Terence Bandoian

On 3/29/2011 2:15 PM, Eric Douglas wrote:
I would guess the answer is yes based on
http://xmlgraphics.apache.org/fop/0.95/embedding.html

"// Reuse the FopFactory if possible!"

-----Original Message-----
From: Terence M. Bandoian [mailto:tere...@tmbsw.com]
Sent: Tuesday, March 29, 2011 5:22 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Thread safe?

   Hi-

Is FopFactory thread-safe?

-Terence Bandoian


On 3/29/2011 1:56 PM, Andreas L. Delmelle wrote:
On 29 Mar 2011, at 21:23, Eric Douglas wrote:

It's actually crashing on the first transformer.  It only crashes if
I run 2 of these at once.  Is there something obvious I'm missing in
this java code?
<snip />

Perhaps... We do not see the declaration of 'myTransformer'. Is that
variable local to each thread? Transformers are definitely not
thread-safe, so should be separate instances for multiple concurrent
transformations. The TransformerFactory is thread-safe, so can be shared
without issues.

Regards

Andreas
---
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to