BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.common
Interface NameServicesDef


public interface NameServicesDef

The NameServicesDef interface defines name services for the WebLogic Server.

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.
See Also:
TengahInitialContextFactory

Method Summary
 javax.naming.Context getInitialContext()
          Returns the initial naming context.
 javax.naming.Context getInitialContext(java.util.Hashtable properties)
          Returns the initial naming context.
 

Method Detail

getInitialContext

public javax.naming.Context getInitialContext()
                                       throws javax.naming.NamingException
Returns the initial naming context.

Returns:
Context of a naming system
Throws:
javax.naming.NamingException - if there is an error

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable properties)
                                       throws javax.naming.NamingException
Returns the initial naming context.

Parameters:
properties - Hashtable containing initial properties.
Usage example:
 properties.put(Context.SECURITY_PRINCIPAL,"system");
 properties.put(Context.SECURITY_CREDENTIALS,"gumby1234");
 javax.naming.Context.getInitialContext(properties);
 
Returns:
Context of a naming system
Throws:
javax.naming.NamingException - if there is an error

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b