Thank you Lasse Koskela,
I really appreciate your reply.
I am currently in a phase where I have to identify all classes that I need for my PDF generator. I would really appreciate if you could help in suggesting if the approach I am thinking is correct or suggest best approach.
--------------------------------------------------------------------------
Approach 1:
1. JSP would send a request to generate a report in pdf format to Action class which inturn makes a request on to my business class.
2. Business class inturn would send a request to the DB class.
3. DB class would get the data from the database and return the data in the form of value objects to the business class.
4. Business class then send that collection to the DOMGenerator that converts data in the value objects to DOM Document and return DOM document to the business class.
5. Business class inturn would return DOM Document to the Action class.
6. Action class would send the DOM Document and xsl file to the PDF generator that generates xsl-fo and transfor XSL-FO into pdf.
Questions:
1. With the above approach, will there be any performance issues with creating DOM Document?.
As I may get thousands on records from the database 2. General question: With this approach will there be any memory issues as DOM document is built in memory. With respect to memory and network traffic will there be any difference between returning collection of value objects to returing DOM document.
---------------------------------------------------------------------------
Approach 2:
Same as above approach 1. Except that instead of converting value objects to DOM Document on
EJB side. Send the value objects to the web container. Which would convert them into DOM Document then to XML then to XSL-FO and finally to PDF.
---------------------------------------------------------------------------
Please Help me out. I have to present this to team on monday
Thank you
Saritha
[ September 26, 2004: Message edited by: Saritha ventrapragada ]