org.openejb.core.ivm.naming
Class InitContextFactory

java.lang.Object
  extended by org.openejb.core.ivm.naming.InitContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

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

Invoked by server on the OpenEJB JNDI global name space. Allows application clients in the same vm to lookup beans in the OpenEJB global name space. If OpenEJB is not initialized when getInitialContext(env) is called, the IntraVM Server will initialize OpenEJB as an in VM EJB Server. In this case, OpenEJB is not capable of receiving remote calls.

Author:
David Blevins, Richard Monson-Haefel

Constructor Summary
InitContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitContextFactory

public InitContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable env)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Throws:
javax.naming.NamingException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.