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

## Using the CORBA Tie Mechanism

There is only one special consideration when you use the CORBA Tie, or delegation, mechanism rather than the inheritance mechanism for server object implementations. In the Tie case, you must implement the `oracle.aurora.AuroraServices.ActivatableObject` interface. This interface has a single method: `_initializeAuroraObject().`

(Note that earlier releases of the Oracle8i ORB required you to implement this method for all server objects. For this release, its implementation is required only for Tie objects.)

The implementation of `_initializeAuroraObject()` for a tie class is typically:

    import oracle.aurora.AuroraServices.ActivatableObject;
    ...
    public org.omg.CORBA.Object _initializeAuroraObject () {
      return new _tie_Hello (this);
    ...

where `_tie_<interface_name>` is the tie class generated by the IDL compiler.

You must also always include a public, parameterless constructor for the implementation object.

See the `tieimpl` example in the CORBA examples set for a complete example that shows how to use the Tie mechanism. See also "TIE Example" for the code.

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