* context classpath (actually it uses the system classloader.)
* Remember that jacorb.properties is in xmlBlaster.jar.
*/
public static void loadJacorbProperties(String fileName, Global glob) throws XmlBlasterException {
if ( fileName == null) {
throw new XmlBlasterException(glob,ErrorCode.RESOURCE_CONFIGURATION,
ME,"jacorb property filename not allowed to be null");
} // end of if ()
Properties props = new Properties();
try {
// Read orb properties file into props
ClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream is = cl.getResourceAsStream(fileName);
if (is != null) {
props.load(is);
// Ad to global
Property p = glob.getProperty();
p.addArgs2Props( props );
} else {
log.warning("No "+fileName+" found in context classpath");
}
} catch (Exception e) {
throw new XmlBlasterException(glob,ErrorCode.RESOURCE_CONFIGURATION,
ME,"could not load jacorb properties "+e);
} // end of try-catch
}