Class WsnInitialContextFactory

  • java.lang.Object
  • All Implemented Interfaces:

    public class WsnInitialContextFactory
    extends java.lang.Object
    implements javax.naming.spi.InitialContextFactory
    This class is the initial JNDI context factory for WebSphere Application Server. To use this class as the initial context factory for initial JNDI contexts, set the property java.naming.factory.initial to a value of JNDI clients running in the WebSphere runtime environment should not have to set this property because it is already set in a copy of contained in a WebSphere runtime jar file. To set this property from a program, you can use the Java constant, javax.naming.Context.INITIAL_CONTEXT_FACTORY, for the property name, and the constant,, for the property value.

    This class is only a facade of sorts and does not contain any real implementation. It delegates to an instance of the class specified by an internal property set in the properties file,, which is part of the WebSphere installation. Users of WebSphere do not need to set this property. However, they do need to be in their runtime environment so that it can be found by the class loader in effect.

    • Method Summary

      Modifier and Type Method and Description
      javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
      This method is implemented as part of the javax.naming.spi.InitialContextFactory interface.
      java.lang.String toString()
      Returns a string representation of this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WsnInitialContextFactory

        public WsnInitialContextFactory()
        Class constructor. Instances of this class are created by the constructor for the class javax.naming.InitialContext. JNDI users do not directly create instances of this class.
    • Method Detail

      • getInitialContext

        public javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
                                               throws javax.naming.NamingException
        This method is implemented as part of the javax.naming.spi.InitialContextFactory interface. This method is invoked by the javax.naming.InitialContext class. JNDI users do not invoke this method directly.
        Specified by:
        getInitialContext in interface javax.naming.spi.InitialContextFactory
      • toString

        public java.lang.String toString()
        Returns a string representation of this object.
        toString in class java.lang.Object
        a string representation of this object.
IBM WebSphere Application ServerTM
Release 9.0