Oracle8i Enterprise JavaBeans and CORBA Developer's Guide
Release 8.1.5

A64683-01

Library

Product

Contents

Index

Prev  Chap Top Next

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 8.1.5, its implementation is only required 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 "tieimpl" for the code.




Prev

Top

Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index