org.openxava.ejbx
Interface IContext

All Known Implementing Classes:
JndiContext

public interface IContext

Look a resource from its name.

It's of generic use, and more easy to implement than JNDI one.

Author:
Javier Paniza

Method Summary
 void close()
           
 java.lang.Object lookup(java.lang.String nombre)
          Look a resource from its name.
 

Method Detail

lookup

java.lang.Object lookup(java.lang.String nombre)
                        throws javax.naming.NamingException
Look a resource from its name.
The returned object can be of any type.

Throws:
javax.naming.NamingException

close

void close()
           throws javax.naming.NamingException
Throws:
javax.naming.NamingException