props.put(Context.INITIAL_CONTEXT_FACTORY, initialFactory);
}
else if (properties == null
|| !properties.containsKey(Context.INITIAL_CONTEXT_FACTORY))
{
throw new InitialisationException(CoreMessages.objectIsNull("jndiInitialFactory"), this);
}
if (url != null)
{
props.put(Context.PROVIDER_URL, url);
}
if (properties != null)
{
props.putAll(properties);
}
try
{
_context = new InitialContext(props);
}
catch (NamingException e)
{
throw new InitialisationException(e, this);
}
}
}