org.mule.impl.container
Class JndiContextHelper

java.lang.Object
  extended byorg.mule.impl.container.JndiContextHelper

public class JndiContextHelper
extends Object

Common code for initialising the JNDI context.

Author:
Andrew Perepelytsya

Constructor Summary
JndiContextHelper()
           
 
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
 

Constructor Detail

JndiContextHelper

public JndiContextHelper()
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-2006 MuleSource Inc.. All Rights Reserved.