On 17.12.2005 13:40:47 Andreas L Delmelle wrote:
> On Dec 16, 2005, at 22:17, David P. Nesbitt wrote:
> 
> > It is possible to have separate configurations of FOP
> > running within the same JVM?
> >
> > I am using the following to configure FOP:
> >
> >      new org.apache.fop.apps.Options(userConfigFile);
> 
> Not sure if this is possible with FOP 0.20.5... will have to wait for  
> one of the veterans to chime in.

It is possible but only by isolating two different FOPs using a special
class loader setup (static variables are bound to their class loader,
not the JVM). Not the easiest of tasks. :-)

> With FOP 0.90, it shouldn't pose a problem AFAICT, to instantiate  
> multiple FOUserAgents each linked to a different configuration. When  
> constructing Fop instances, you can rather easily decide which  
> FOUserAgent to use. Don't know if this is the type of flexibility you  
> were looking for.

Yes, no problem with 0.90, I think. We'll certainly have to improve the
situation a little especially since some of the setup code is run every
time a document is processed (setup per rendering-run). However, most of
this setup code should only be called once for performance reasons. This
will be fixed in the near future. The ability to set up two differently
configured FOPs in one JVM will remain intact.

Jeremias Maerki


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

Reply via email to