org.openxava.ejbx
Class JndiContextProvider

java.lang.Object
  extended by org.openxava.ejbx.JndiContextProvider
All Implemented Interfaces:
IContextProvider

public class JndiContextProvider
extends java.lang.Object
implements IContextProvider

Provides a IContext that look up in JNDI space.

It don't make cach� of returned context, it create one new each time.
The look up is made using new InitialContext() of JNDI.

Author:
Javier Paniza

Constructor Summary
JndiContextProvider()
           
 
Method Summary
 IContext getContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiContextProvider

public JndiContextProvider()
Method Detail

getContext

public IContext getContext()
                    throws javax.naming.NamingException
Specified by:
getContext in interface IContextProvider
Throws:
javax.naming.NamingException