i have a requirement like this, the data are imported from a legacy database which are saved to the oracle tables. now a scheduler should run periodically generating a pdf report on each imported records. the pdf report is not about the import of data, but report the application users should see when they print it using application. so that this pdf will be issued no matter when they print, each time i need not generate pdf. having said that, the generated pdf should be saved to the file server. the saved path will be saved to the imported table on each row.
i had used pdf servlet to create pdf in struts, but how do i generate it standalone using jasper files and write it to a file system.
i wish to do this module in a proper way (not a junk-hunky code) , so would you please give me ideas on how can i make this thing in oo way.
I am not too sure about exact solution. But if you do not wish to update .pdf file each time and want to print ther report with path stored on server then use of peer to peer approach could be the solution for your problem . Just like RSS on news' website. This might be the idea. i am not too sure about it.
So the problem is that a PDF should be generated when the user asks for it, and it should then be stored on the server so it can be served to the next user who asks for it provided the data hasn't changed until then? That doesn't sound too hard; which part is giving you problems?
I'd start by creating the JasperReports file that generates the report; this can be done outside of a servlet container using a desktop app; that way it's easier and faster to develop and debug.
I don't see where P2P (peer to peer) approaches would fit in here at all.
Joined: Nov 03, 2009
yup...you must be right. I misunderstood the question.I thought requirement is to automatically update pdf file without any upgradation later once generated. Also I thought it' going to be executed within java as there was highlight on oo concept. That's why I thought in this direction.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com