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
RegistrarFactory
object, requesting a reference to aRegistrar
object. The request includes a student ID. - The
RegistrarFactory
inserts the student ID into anNVlist
, which is used as the routing criteria. - The
RegistrarFactory
invokes theTP::create_object_reference()
operation, passing theRegistrar
interface name, a unique OID, and theNVlist
. - Oracle Tuxedo CORBA compares the contents of the routing tables
with the value in the
NVlist
to 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