CORBA MESSAGING

Also the CORBA project offers support for messaging infrastructure, the messaging infrastructure is made of 2 principal components:

  • Asynchronous Messaging Interface (AMI) Possibility of both polling and callback (callback is passed as CORBA object, therefore even not in the same addressing space of client)
  • Time Independent Invocation (TII) to specify which CORBA objects play the role of router for the message ( implementation of the store and forward principle )

LOCATORS IN CORBA

locators are implemented trough Interoperable Object Reference (IOR), with different profiles depending on binding protocol

CALLBACK VS POLLING

For the callback approach the application defines a callback function to be called

voidsendpoll_somma (in int i, in int j)
voidpollsomma (out int success, out int somma)

For the Polling approach the application decides when to interrogate the CORBA support to retrieve the operation result:

voidsendpoll_somma (in int i, in int j)
voidpollsomma (out int success, out int somma)

PREVIOUS NEXT