org.mule.util
Class JndiContextHelper
java.lang.Object
org.mule.util.JndiContextHelper
public final class JndiContextHelper
- extends Object
Common code for initialising the JNDI context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialise
public static Context initialise(Map environment)
throws NamingException
- Create a new initial context.
- Parameters:
environment
- JNDI properties or null
. In the latter case
a default constructor of InitialContext
will be
called with standard JNDI lookup properties semantics.
- Returns:
- jndi context
- Throws:
NamingException
- if there was a JNDI error
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.