Hi,
I am currently working on a struts based web application which interacts with legacy systems to retrieve data for display and update. There is one scenario in my application where the ejb layer makes multiple host calls to the legacy system to retrieve data for a report. I was handling this by constructing a string buffer each time the host retrieves 1821 bytes of data and when i get an end of file flag from the host, i do a toString to the string buffer and set it to the request scope in my Action class for dispaly in the report jsp.
Problem Definition:
The above scenario works fine as long as the size of the string in managable. Now I want to increase the size of the report in the host to really large one. Say previously i was displaying 1000 lines in the report using String, now i want to increase it to 1,00,000 lines in the report. As far as i know the String concept that i used previously will not work fine here, as max length of the String is based on the heap size in JVM. (Am not sure as to what's the max size of a string)
I would really apperciate if someone could suggest me a good approach for this problem so that i can come up with a design that would allow me to display the entire report to the user irrespective of the size of the report, that i retrieve from the host. (Any number of lines)
Thank you and happy new year to one and all.
Regards,
Sharon Jolly
----------------------------------------------------------------DISCLAIMER---------------------------------------------------------
Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@(protected)
and delete this EMAIL including any attachments