Question 5 of 15 · CIE-2 QB · 7 marks
Open in ChatGPTExplain the architecture of CORBA and the functions of its major components, including the Object Request Broker (ORB).
Introduction
CORBA (Common Object Request Broker Architecture) lets a client invoke a method on an object written in another language, on another machine, through one standard interface. Its centre is the Object Request Broker, which routes every call and hides the network.
Architecture and components
- Client and server objects: ordinary objects behind the interface they declare.
- IDL interface: the language-neutral definition of the object's methods; the compiler generates stubs and skeletons.
- Client stub (proxy): marshals the call and forwards it to the ORB.
- Object Request Broker: the bus: it locates the target object, activates it if needed, delivers the request and returns the reply. It is the only component that must be present in both client and server.
- Object adapter (POA): the server-side layer the ORB talks to; it creates objects, maps object references to implementations, and dispatches the call to the right method.
- Implementation repository: stores where each implementation lives and how to launch it.
- Interface repository: stores the IDL definitions, so a client can introspect an interface at run time.
- Naming service and trading service: map a human name, or a set of properties, to an object reference.
- IOR (interoperable object reference): the object's address: host, port, object key and repository id.
Working of a call
- The client holds an IOR, resolved from the naming service.
- The client calls a method on its stub.
- The stub marshals the arguments into a GIOP request and hands it to the ORB.
- The ORB sends it over IIOP to the server's ORB.
- The object adapter dispatches to the skeleton, which unmarshals and calls the real object.
- The result travels back the same path.
Diagram
Conclusion
The ORB is the whole idea: one bus that locates, activates and transports requests, so the client sees a method call and never an address. Everything else: IDL, adapters, repositories: exists to let that bus find the right object in the right language.