Re: PDF streaming through Apache.
Gah, I wish I'd known about Cocoon a year ago. even a couple months ago would have been nice. this stuff is all absolutly beautiful.. Now, how to get my bacon out of the fire.. *sigh* Too much cool stuff, not enough time. Rob On Mon, 11 Nov 2002, Bertrand Delacretaz wrote: > On Sunday 10 November 2002 17:35, Robert Ferney wrote: > >. . . > > Well, it would be more accurate to say that I don't know anything about > > how to use a "servlet" .. It sounds like the servlet path may be my best > > option, assuming I can figure out how to use it.. > >. . . > > FOP being written in java, the most efficient way to call it in an HTTP > environment is as a servlet. > > If you don't want to program a servlet, you might want to have a look at Cocoon > (http://xml.apache.org/cocoon) which allows you to run XML processing > pipelines in an HTTP environment and takes care of a lot of things that you'd > have to reinvent if you start writing a FOP servlet. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PDF streaming through Apache.
On Sunday 10 November 2002 17:35, Robert Ferney wrote: >. . . > Well, it would be more accurate to say that I don't know anything about > how to use a "servlet" .. It sounds like the servlet path may be my best > option, assuming I can figure out how to use it.. >. . . FOP being written in java, the most efficient way to call it in an HTTP environment is as a servlet. If you don't want to program a servlet, you might want to have a look at Cocoon (http://xml.apache.org/cocoon) which allows you to run XML processing pipelines in an HTTP environment and takes care of a lot of things that you'd have to reinvent if you start writing a FOP servlet. -- 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, email: [EMAIL PROTECTED]
Re: PDF streaming through Apache.
Robert Ferney wrote: Well, it would be more accurate to say that I don't know anything about how to use a "servlet" .. It sounds like the servlet path may be my best option, assuming I can figure out how to use it.. Ah well, back to the research.. Any pointers at this point would be useful. Start from http://java.sun.com/products/servlet. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PDF streaming through Apache.
On Sun, 10 Nov 2002, Oleg Tkachenko wrote: > Robert Ferney wrote: > > I want to be able to generate these PDF reports on the fly, however, I'm > > not really wanting to use Jakarta-Tomcat as a Http server to accomplish > > this. > Actually tomcat is a servlet engine, not http server. Do you mean you don't > want to use servlets? Well, it would be more accurate to say that I don't know anything about how to use a "servlet" .. It sounds like the servlet path may be my best option, assuming I can figure out how to use it.. Ah well, back to the research.. Any pointers at this point would be useful. Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PDF streaming through Apache.
Robert Ferney wrote: Use Background: Ok, I'm working on a database where the primary inface is web based. So I presume you have some server-side middleware between them. I want to be able to generate these PDF reports on the fly, however, I'm not really wanting to use Jakarta-Tomcat as a Http server to accomplish this. Actually tomcat is a servlet engine, not http server. Do you mean you don't want to use servlets? And I haven't figured out how to get the command line Fop to use standard io for the files. ie, specifying - as the filename dosn't work. FOP's command line interface assumes input parameters are file names, but you can easily write a wrapper, which uses System.in and System.out as input source and output stream respectively, see embedding page at http://xml.apache.org/fop/embedding.html, yes, that means embedding indeed. I'm already using PostgreSQL and Apache with mod-perl to manage the data. I'd like to be able to have the mod-perl spit the XML through FOP as a filter and stream the results to the user. Well, FOP is written in java and embedding it into a servlet is obviously trivial, but not into a perl program. You can run it there as executable "java MyFOPWrapper", but getting JVM up for each request would be a performance nightmare. Alternatively you can consider developing multithreaded FOP servlet, but it looks like reinventing the wheel. What's wrong with servlet engine? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]