J-Integra® Espresso Programming Documentation (API) |
|
J2eeEasyContext.Lookup Method
Looks up a remote object with a specified JNDI name. Returned object can be
cast directly to the desired Interface. There is no need to explicitly "narrow"
the returned object. For example:
MyInterface inter = (MyInterface)J2eeEasyContext.Lookup("JNDI Name",
"MyInterface");
System.Object Lookup(
string
 jndiName, string
 interfaceTypeFullName,
);
System.Object Lookup(
string
 jndiName, System.Type
 interfaceType,
);
Parameters
- jndiName
-
The JNDI name the EJB or Remote object is registered under.
- interfaceTypeFullName
-
The FULL Type name of the desired interface to be returned, for example
a.b.c.MyInterface
- interfaceType
-
The System.Type of the desired return interface.
Return Value
System.Object
Remarks
This class functions very similarly to a java style InitialContext class. See
product documentation for the easy java style APIs.
Note: ALWAYS call J2eeEasyContext.Init
before using this method!
Exceptions
JintegraProxyNotFoundException
See Also
J2EE Config | J2EE
Namespace