Thanks for your reply.

I ended up using a XSL parameter instead of baseDir.  Can you tell me if 
driver.render is thread safe.  Can I have more than one conversion running at 
the same time?

Later,

Robert Wynkop

-----Original Message-----
From: fop-dev-digest-help [SMTP:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 4:39 AM
To: fop-dev
Cc: olegt
Subject: Re: Setting baseDir in a servlet environment.

[EMAIL PROTECTED] wrote:

> org.apache.fop.configuration.Configuration.put("baseDir","c:\my\base\dir").
> 
> or since I'm using a servlet I should call:
> 
> org.apache.fop.apps.Options options = new Options( new FIle("userconfig.xml") 
)
> How is this going to be thread safe?
afaik it's not thread safe. Configuration subsystem uses static fields and 
methods, that's well-known problem, which is addressed by the redesign under 
way.

> In 
> userconfig.xml how would I say baseDir="c:\mybasedir"?
There is commented out example in userconfig.xml.

> I also noticed that org.apache.fop.render.pdf.PDFRenderer has a set options 
> method.  Can I create one of these, set options and the pass it to 
> driver.setRenderer(Renderer renderer) instead of 
> setRenderer(Driver.RENDER_PDF).  Does calling setOptions override or add to 
> settings that are set in userConfig and config
I don't think so.

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel




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

Reply via email to