org.exolab.jms.server
Class NameService

java.lang.Object
  |
  +--org.exolab.jms.server.NameService

public class NameService
extends java.lang.Object

Enter description here.

Version:
$Revision: 1.1 $ $Date: 2005/08/30 05:41:44 $
Author:
Tim Anderson

Constructor Summary
NameService(Configuration config)
          Construct a new NameService.
 
Method Summary
 javax.naming.Context getInitialContext()
          Return the initial context.
 org.codehaus.spice.jndikit.NamingProvider getNamingProvider()
          Returns the embedded naming provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameService

public NameService(Configuration config)
Construct a new NameService.
Parameters:
config - the configuration to use
Method Detail

getInitialContext

public javax.naming.Context getInitialContext()
                                       throws javax.naming.NamingException
Return the initial context.
If an embedded JNDI service is configured, then return its initial context, else return the initial context of the external JNDI provider.
Returns:
the initial context
Throws:
javax.naming.NamingException - if a naming error occurs

getNamingProvider

public org.codehaus.spice.jndikit.NamingProvider getNamingProvider()
Returns the embedded naming provider.
Returns:
the embedded naming provider, or null if an external provider is configureed


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.