2.5.4 What Happens at Run Time

When you implement factory-based routing in a factory, Oracle Tuxedo CORBA generates an object reference. The following example shows how the client application gets an object reference to a Registrar object when factory-based routing is implemented.

  1. The client application invokes the RegistrarFactory object, requesting a reference to a Registrar object. The request includes a student ID.
  2. The RegistrarFactory inserts the student ID into an NVlist, which is used as the routing criteria.
  3. The RegistrarFactory invokes the TP::create_object_reference() operation, passing the Registrar interface name, a unique OID, and the NVlist.
  4. Oracle Tuxedo CORBA compares the contents of the routing tables with the value in the NVlist to determine a group ID.
  5. Oracle Tuxedo CORBA inserts information about the group into the object reference.

When the client application subsequently invokes an object using the object reference, Oracle Tuxedo CORBA routes the request to the group specified in the object reference.

Note:

If you use the process-entity design pattern, you should use caution in how you implement factory-based routing. The object can service only those entities that are contained in the group’s database.