S
Stefan Wessely
Hi!
My servlet needs to use a xml parser that is different from the one
installed in (for example) Tomcat. But I'm not allowed to replace
Tomcat's XML parser nor change classpath.
I'm using
System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"oracle.xml.jaxp.JXDocumentBuilderFactory");
to force my servlet to use the oracle parser.
But here comes the problem:
System.setProperty does not only have an effect to my servlet but to all
servlets runnin' on that server!
What can I do to limit it to my servlet only?
Thanx,
Stefan
My servlet needs to use a xml parser that is different from the one
installed in (for example) Tomcat. But I'm not allowed to replace
Tomcat's XML parser nor change classpath.
I'm using
System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"oracle.xml.jaxp.JXDocumentBuilderFactory");
to force my servlet to use the oracle parser.
But here comes the problem:
System.setProperty does not only have an effect to my servlet but to all
servlets runnin' on that server!
What can I do to limit it to my servlet only?
Thanx,
Stefan