Oracle8i Enterprise JavaBeans Developer's Guide and Reference Release 3 (8.1.7) Part Number A83725-01 |
|
Non-IIOP server requests, such as HTTP or DCOM, can activate an EJB object within the same session.
If the non-IIOP server object wants to look up and activate a new published object in the same session in which it is running, the server object can execute the following:
Context ic = new InitialContext( ); SomeObject myObj = (SomeObject) ic.lookup("/test/Hello");
Notice that there are no environment settings for authentication information in the environment or a URL specified in the lookup. The authentication already succeeded in order to log into the session. Plus, the object exists on the local machine. So, any other object activation within the session can proceed without specifying authentication information or a target URL address.
|
Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|