Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This sequence diagram shows a InOut service invocation between a consumer and a provider.

Panel
borderColor#ccc
bgColor#ffffff
titleInvocation example
borderStylesolid

Image Added

  1. The consumer creates an InOut message exchange, populates the "in" message (the request) and send it to the NMR
  2. The provider component polls the delivery channel for an exchange
  3. It processes the request, populates the "out" message and send it back to the NMR
  4. The consumer polls the delivery channel for the response
  5. It processes the response and mark the exchange as "done"
  6. The provider receives the "done" status from the delivery channel

...

borderColor#ccc
bgColor#ffffff
titleWSDL Messaging Model
borderStylesolid

...

This example is an asynchronous invocation, but JBI also handles synchronous calls. In such a case, the consumer call to send would be a sendSync and would block the thread until the response is received. On the provider side, if the provider wish to synchronously deliver the response, the call to send (#3) would block until the consumer acks the response.

...