Silly me, going to be hard for you guys to answer my question if you don't
have a code sample to look at J




   static

   {

      try

      {

         cyberTron = TransformerFactory.newInstance();

         Config config = (Config)
ConfigManager.getInstance().getConfig(Config.class);

         Source xslt = new StreamSource(new
File(config.getXSLTemplateURL()));

         allSpark = cyberTron.newTemplates(xslt);

      }

      catch(Exception e)

      {

         logger.error(e);

      }

   }

 

~Brian

___________________________________________________
Brian Trezise
Staff Software Engineer
IntelliData, Inc
22288 E Princeton Dr
aurora, colorado 80018
T: 720.524.4864
[EMAIL PROTECTED]

 

From: Brian Trezise [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2008 2:41 PM
To: [email protected]
Subject: XSL caching question

 

In FOP 0.95, I'm using the basic caching method to cache my XSL
transformation file, not doing anything fancy with file system monitors or
anything for the time being.  The first time I run FOP on the server to
generate a pdf, it takes 10-20 seconds to generate the pdf because it's
loading up the XSL file for the first run.  Afterwards it runs in the
neighborhood of 500ms per PDF.  I was just wondering if there is a way to
force the XSL to fully cache statically?

This isn't a huge issue as we don't restart our servers all that often but
it's just a little thing that's bugging me J

Thanks,

___________________________________________________
Brian Trezise
Staff Software Engineer
IntelliData, Inc
22288 E Princeton Dr
aurora, colorado 80018
T: 720.524.4864
[EMAIL PROTECTED]

 

Reply via email to