Skladov, Victor wrote:

> Hello, friends!
> 
> Does anybody know whether Cocoon can work with such programms as LATEX?
> PROBLEM:
> I create a TEX(LATEX) document from a XSP and a XSL and want to forward
> this output stream (TEX) further to a "pdflatex" programm, that in its
> turn makes from TEX doc a PDF file.
> Is this generally possible to call from Cocoon other programms?


The java.lang.Runtime object is used to handle such things.  However, there
are some caviats:

1) You have to have a full path to the tool.
2) You have to incur the startup and shutdown time for the tool to be executed
    outside the VM.
3) You severely limit your scalability by using this approach.
4) You must specifically grant the servlet container and Cocoon to have the
    security permissions to execute external programs
5) MOST IMPORTANTLY: if the outside program dies horridly and uncontrollably,
    it can kill the JVM!


-- 

"Those who would trade liberty for
  temporary security deserve neither"
                 - Benjamin Franklin


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

Reply via email to