Hi Simon.

S. Woodside:
> > The thing is, my web app is in Rails, and I'm not too sure if doing a  
> > system() call out to run batik is going to be very efficient. I seem  
> > to recall that running java -jar has a lot of overhead, and then  
> > maybe there's memory issues, or other things? I know that batik takes  
> > several seconds on my (old) server to render my test SVG to PDF, and  
> > I need sub-second times.

Jeremias Maerki:
> You're on the right track. You'd have to write a web service wrapper
> around Batik. Or you could put it in a servlet. I don't think there's
> anything that you could use out-of-the-box. Good luck!

As Jeremias says, something that keeps a JVM running all the time is
what you need.  I wrote a small, sample transcoding Java servlet here:

  http://mcc.id.au/2007/09/batik-course/code/transcoding-servlet/

You could have that running, and invoke it (via HTTP) from your rails
application.

Jetty is a simple Java servlet container that you can use to run the
above servlet.

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

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

Reply via email to