Re: Invoking FOP from C++

2004-07-12 Thread anders . malmborg




 Has anyone else had any experience calling FOP from C++?
I am working on an existing product with a lot of C++ code. We are about to
change the printing engine from something homegrown to FOP.

I can only confirm the recommendations to embed the FOP into some sort of
Java Daemon or Servlet. The performace gains from having FOP up running and
eventually chaching stylesheets are significant.

At the time I am considering to use HTTP/XML (Servlet embedding), ORB, IPC
or RMI (Daemon embedding) as communication between the C++ system and Java
FOP.

Regards,
Anders Malmborg.


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



RE: Invoking FOP from C++

2004-07-12 Thread olts Jn
  Has anyone else had any experience calling FOP from C++?

 I can only confirm the recommendations to embed the FOP into 
 some sort of Java Daemon or Servlet. 

We are calling FOP from C++ without any problems. But we are also considering 
to use some daemon/servlet for the same reasons Anders Malmborg mentioned.

 My next approach is to download the source, write a Java
 wrapper for FOP

We had to write Java wrapper class too. Some configuration settings are not 
available through command line switches, only by calling native Java methods.

jan soltis

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



Re: Invoking FOP from C++

2004-07-11 Thread Steve Afdahl
Have you looked into the Java Native Interface (JNI)?  It works both 
ways.  You can use it in Java to call native libraries and you can also 
use it to call Java code from C/C++.  This should give you access to the 
page count property as well as controlling output creation.

This link might help you get started:
http://java.sun.com/docs/books/tutorial/native1.1/implementing/index.html
Oosterbaan, Douglas S. (LNG-DAY) wrote:
Has anyone invoked FOP 0.20.5 from a C++ process?  We have a large
existing C++ component which needs the services provided by
FOP.   I've downloaded the binary and played around with it,
and was considering using a fork() and exec(), but FAQ 2.8 states:
It is best to avoid exec'ing FOP, use the library interface
instead.
FAQ 2.8 is in reference to the Jave Runtime.exec() call, but 
I assume the same would apply to a C++ exec().  Also, I need
to get back the page count that is included in the results 
object returned by FOP.

My next approach is to download the source, write a Java
wrapper for FOP, and call my wrapper process either through
an exec() or a CORBA call.  But if possible I would like to 
just use the binary in it's original form.

Has anyone else had any experience calling FOP from C++?
Thanks.

-
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]


Re: Invoking FOP from C++

2004-07-10 Thread Gunnar Liljas
At 20:08 2004-07-09, you wrote:
Has anyone else had any experience calling FOP from C++?
Thanks.
No, but I'm using it very successfully from a C# application, by executing 
the binary. Of course there is a performance penalty, and the level of 
control isn't fine grain, but it's stable.

/Gunnar 

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


Invoking FOP from C++

2004-07-09 Thread Oosterbaan, Douglas S. (LNG-DAY)

Has anyone invoked FOP 0.20.5 from a C++ process?  We have a large
existing C++ component which needs the services provided by
FOP.   I've downloaded the binary and played around with it,
and was considering using a fork() and exec(), but FAQ 2.8 states:

It is best to avoid exec'ing FOP, use the library interface
instead.

FAQ 2.8 is in reference to the Jave Runtime.exec() call, but 
I assume the same would apply to a C++ exec().  Also, I need
to get back the page count that is included in the results 
object returned by FOP.

My next approach is to download the source, write a Java
wrapper for FOP, and call my wrapper process either through
an exec() or a CORBA call.  But if possible I would like to 
just use the binary in it's original form.

Has anyone else had any experience calling FOP from C++?
Thanks.



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