org.exolab.jms.server
Class NamingHelper

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

public class NamingHelper
extends java.lang.Object

This class provides helper methods to access the name service's initial context.

Version:
$Revision: 1.4 $ $Date: 2003/08/17 01:32:26 $
Author:
Tim Anderson
See Also:
EmbeddedNameService

Constructor Summary
NamingHelper()
           
 
Method Summary
static javax.naming.Context getInitialContext(org.exolab.jms.config.Configuration config)
          Return the initial context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamingHelper

public NamingHelper()
Method Detail

getInitialContext

public static javax.naming.Context getInitialContext(org.exolab.jms.config.Configuration config)
                                              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.
Parameters:
config - the server configuration
Returns:
the initial context
Throws:
javax.naming.NamingException - if a naming error occurs


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