globalUtil = new GlobalUtil();
if ( jndiName != null) {
try {
globalUtil = (GlobalUtil)new InitialContext().lookup(jndiName);
} catch (NamingException e) {
throw new IllegalStateException("Could not lookup GlobalUtil with JNDI " + jndiName + ": "+e);
} // end of try-catch
} // end of if ()
glob = globalUtil.newGlobal( propFile, props );
if ( "IOR".equals(glob.getProperty().get("protocol", "IOR")) ) {
//Start by loading jacorb.properties, without it corba protocol does
// not work well.
try {
JacorbUtil.loadJacorbProperties("jacorb.properties",glob);
} catch (XmlBlasterException e) {
IllegalStateException x = new IllegalStateException("Could not load jacorn properties, needed for IOR protocol to work: "+e);
x.setLinkedException(e);
throw x;
} // end of try-catch
} // end of if ()