org.mule.util
Class JndiContextHelper

java.lang.Object
  extended by org.mule.util.JndiContextHelper

public final class JndiContextHelper
extends Object

Common code for initialising the JNDI context.


Method Summary
static Context initialise(Map environment)
          Create a new initial context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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-2009 MuleSource, Inc.. All Rights Reserved.