File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XML grammar cache pools Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML grammar cache pools" Watch "XML grammar cache pools" New topic
Author

XML grammar cache pools

Stuart J W Bell
Greenhorn

Joined: Nov 23, 2006
Posts: 23
Hi there,


I am investigating using a grammar cache pool to improve schema validation performance. I understand the concept, but the only piece that I would like to know about is whether you have to use it in conjunction with a parser pool as well?

http://www.ibm.com/developerworks/xml/library/x-perfap3.html

http://www.ibm.com/developerworks/xml/library/x-perfap2.html

For me, it makes sense if you are re-using the same parser each time as it will be configured to use the pre-compiled schema each time. However, if the parser is being created each time (i.e. localling in a method) then does the grammar cache pool stand much chance of working? Does the grammar cache pool get statically stored once it has been pre-compiled and will be available in that state for the remainder of the application's life?

Any thoughts out there?

Cheers,


Stuart
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XML grammar cache pools
 
Similar Threads
wsdl to html form
JAXB
Radio Button values
validating soap response
First XML project with quick turnaround