Setting this via a system property cannot be done as this is a global override. We could simply externalize the default factory name to an attribute of the jboss server info mbean and fallback to the jdk default if it cannot be found. I don't know if an extension class can get access to a class from the jdk rt.jar via the ClassLoader.getSystemClassLoader().
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Dimitris Andreadis > Sent: Wednesday, February 22, 2006 4:02 AM > To: jboss-development@lists.sourceforge.net > Subject: RE: [JBoss-dev] Xalan removal saga > > It all boils down to here: > ... > return (TransformerFactory) FactoryFinder.find( > /* The default property name according to the JAXP spec */ > "javax.xml.transform.TransformerFactory", > /* The fallback implementation class name */ > "org.apache.xalan.processor.TransformerFactoryImpl"); > ... > > I don't see how we can patch the TF to return a proper > fallback implementation name, because we just don't know what that is. > > On Sun jdk1.4 it would be > org.apache.xalan.processor.TransformerFactoryImpl > On Sun jdk5 it would be > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl > But on other vendor jdks, whats the correct value? > > And if it is just a question of setting a sensible default > value, we could do just the same setting the > javax.xml.transform.TransformerFactory property. > > But isn't this exactly the role of the TransformerFactory > offered by the jdk vendor? > > I think the best compromise is to just remove > javax.xml.transform.TransformerFactory from xml-apis.jar > (replace with xml-apis-notf.jar ?) to let the vendor supplied > default apply. > > I've attached the TransformerFactory code that comes with xml-apis.jar ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development