I'd prefer CORBA. It's more robust than sending a http request and easier to
CORBA is also supported in the current jdk. For the C++ side, take a look at
the ACE / TAO
project. It's an open source orb and available for many platforms.

Using CORBA also enables you to have a bidirectinal communication between
the fop process and
the client application. You can send the logger output to the client to show
the state of the
current fop processing ( page number, and so on ).

It works for us and is already in use by some of our real world

Hope this helps.

PS : You could set up a FOP - Server , a process that waits for CORBA
requests and generates PDF
or PCL output. This would also increase performance, since the java vm would
not be loaded every
request. This saves on slower machines in some cases more than 10

-----Ursprüngliche Nachricht-----
Von: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 29. November 2002 08:05
Betreff: Re: Call upon FOP within a c++ application

On Friday 29 November 2002 01:43, Amit Bhatnagar wrote:
> Is it possible to call upon FOP with a c++ application?

Should be possible using JNI, the Java Native Interface (info at

> If it isn't possible, is my only alternative to make a system call
> and execute the FOP.bat?

You could also use an HTTP-based interface along these lines:

1. C++ makes HTTP request to FOP servlet including a unique filename

2. FOP servlet in turn makes HTTP request to C++ to get the XSL-FO data,
passing it the unique filename

3. C++ receives PDF from FOP

Which is a nicely decoupled and language-independent interface.

Hope this helps!
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
 blogspace http://www.codeconsult.ch/bertrand

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

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

Reply via email to