Oracle8i CORBA Developer's Guide and Reference Release 3 (8.1.7) Part Number A83722-01 |
Library | Service | Contents | Index

## Object References Have Session Lifetimes

The Aurora ORB creates object instances in database sessions. When a session disappears, references to objects created in that session become invalid; attempts to use them incur the "object does not exist" exception. A session disappears when the last client connection to the session is closed or the session's timeout value is reached. An object in a session can set the session timeout value with
`oracle.aurora.net.Presentation.sessionTimeout()`
optionally providing a client interface to this method, which a client can call if it wants an object to persist after client connections to the session are closed.

The life of a typical Oracle8 i CORBA object proceeds as follows:

- A client looks up an object implementation's name with JNDI specifying the database where the implementation has been published.

- The Oracle ORB responds by instantiating an object of the type, and returning a reference to the client.

- The client calls methods on the object, and may pass the reference to other clients who may then call methods on the object.

- The object ceases to exist when its session is destroyed.

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index