Basically I'm looking for the most efficient way to do data delivery to clients. Basically I need to provide data to clients in XML format every time the they access a URL. The XML data will be created based on data on a table.
I'm comparing between two approaches: 1. Create a file every time clients request it. And then redirect clients to this file. 2. "Creating on-the-fly approach"
I'm testing #2 using a JSP page that have out.print() statements to generate the XML. I create a small XML parser. Everything is okay with one process running. Then I try to simultaneously access the JSP page using multiple process and it gives me an error many times saying that the XML feed is not properly formatted (fatal error message).
Is it because there's only one instance of that JSP page exist? So there cannot be multiple processes?
Could you please explain me more about this? > That said, why on earth bother to use a JSP if you're going to use > out,print() statements? The whole point of JSP is that template text and > output is easy to emit without resorting to that.