org.jcoderz.commons.config
Class ConfigurationServiceJNDIUtil

java.lang.Object
  extended by org.jcoderz.commons.config.ConfigurationServiceJNDIUtil

public class ConfigurationServiceJNDIUtil
extends Object

Utility class for ConfigurationService.


Constructor Summary
ConfigurationServiceJNDIUtil()
           
 
Method Summary
static ConfigurationServiceHome getHome()
          Obtain remote home interface from default initial context
static ConfigurationServiceHome getHome(Hashtable environment)
          Obtain remote home interface from parameterised initial context
static ConfigurationServiceLocalHome getLocalHome()
          Obtain local home interface from default initial context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceJNDIUtil

public ConfigurationServiceJNDIUtil()
Method Detail

getHome

public static ConfigurationServiceHome getHome()
                                        throws NamingException
Obtain remote home interface from default initial context

Returns:
Home interface for ConfigurationService. Lookup using JNDI_NAME
Throws:
NamingException

getHome

public static ConfigurationServiceHome getHome(Hashtable environment)
                                        throws NamingException
Obtain remote home interface from parameterised initial context

Parameters:
environment - Parameters to use for creating initial context
Returns:
Home interface for ConfigurationService. Lookup using JNDI_NAME
Throws:
NamingException

getLocalHome

public static ConfigurationServiceLocalHome getLocalHome()
                                                  throws NamingException
Obtain local home interface from default initial context

Returns:
Local home interface for ConfigurationService. Lookup using JNDI_NAME
Throws:
NamingException


Copyright 2007 The jCoderZ Project.