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.
- The client application invokes the
RegistrarFactoryobject, requesting a reference to aRegistrarobject. The request includes a student ID. - The
RegistrarFactoryinserts the student ID into anNVlist, which is used as the routing criteria. - The
RegistrarFactoryinvokes theTP::create_object_reference()operation, passing theRegistrarinterface name, a unique OID, and theNVlist. - Oracle Tuxedo CORBA compares the contents of the routing tables
with the value in the
NVlistto determine a group ID. - 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.Parent topic: Scaling with Factory-based Routing