Yeah, that means you should only have one per class which should work
for multiple instances.
The threading issue is what I'm looking at now, where I have multiple
sessions running concurrently.
I have yet to see any threading problems with the FOP objects.  My error
seems to be just on Oracle's Transformer.
That page also mentions threading, at your own risk, though it was from
0.95 so I don't know if they've done much additional testing or changes
since.

"Multithreading FOP
Apache FOP may currently not be completely thread safe. The code has not
been fully tested for multi-threading issues, yet. If you encounter any
suspicious behaviour, please notify us. 

There is also a known issue with fonts being jumbled between threads
when using the Java2D/AWT renderer (which is used by the -awt and -print
output options). In general, you cannot safely run multiple threads
through the AWT renderer. 
" 

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

  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


---------------------------------------------------------------------
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