org.exolab.jms.jndi.rmi
Class RmiJndiInitialContextFactory

java.lang.Object
  |
  +--org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

public class RmiJndiInitialContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

This is the client side helper class that retrieves the root context of the JNDI server. This class implements the InitialContextFactory interface

Version:
$Revision: 1.20 $ $Date: 2004/01/29 12:14:14 $
Author:
Jim Alateras

Constructor Summary
RmiJndiInitialContextFactory()
          This class is required to have a default constructor
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable environment)
          This routine will extract the port number of the RMI registry from the environment and uses it to establish a connection with the JNDI server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiJndiInitialContextFactory

public RmiJndiInitialContextFactory()
This class is required to have a default constructor
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable environment)
                                       throws javax.naming.NamingException
This routine will extract the port number of the RMI registry from the environment and uses it to establish a connection with the JNDI server. It then makes a call to retrieve the initial context which it then returns to the client
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Parameters:
environment - the environment specifying information to be used in the creation of the initial context.
Returns:
the initial context


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