xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognjen Blagojevic <ognjen.d.blagoje...@gmail.com>
Subject Re: Calling FOP from a non Java based webpage
Date Tue, 26 Oct 2010 08:28:05 GMT
> What would be the smartest way to achieve this? Using Cocoon? Calling a
> Java Servlet using AJAX? I don’t want to use .NET if possible.

I would suggest doing it inside simple Java web application with one 
servlet for generating PDF response using FOP, running on Apache Tomcat 
(or similar lightweight servlet container).

That way you will avoid creating instance of new Java Virtual Machine 
every time you need to create PDF, but use one instance (with 
configurable number of threads) for all of them.

You really don't need AJAX for that, since your servlet would generate a 
full PDF document for every response. We use AJAX for generating data 
that are not considered full documents but rather HTML document parts or 
data for populating form controls.

Depending of the usage, your Java web application may read external data 
(if any) directly from data source (e.g. database) or from HTTP get/post 
method parameters coming from the user.

If authentication is not a concern, you may expose links to your Java 
web application directly from your ASP application. If it is, than your 
ASP application will do the authentication and act as proxy to Java webapp.


To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message