Versions Compared

Key

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

...

The publisher proxy is a simple component that wraps incoming JBI exchanges into WS-Notification notify requests and send them to a notification broker on the given topic. This could also be written in plain spring style:

...

Note that the <sm:address /> element is a ServiceMix extension that creates a PullPoint on a specific JBI endpoint. This is very useful when you want to create a subscription for this endpoint at deployment time (see the previous paragraph).

Notify

The Notify request is sent by a publisher to the NotificationBroker. This request contains a list of NotificationMessage, each one containing:

  • a subscription reference (not used)
  • a topic (mandatory)
  • a producer reference (which may contain the address of the producer that created the message)
  • the message

Below is an example of a such a request.

Code Block
langxml
<wsnt:Notify 
  xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
  <wsnt:NotificationMessage>
    <wsnt:Topic>myTopic</wsnt:Topic>
    <wsnt:Message>
      <hello>world</hello>
    </wsnt:Message>
  </wsnt:NotificationMessage>
</wsnt:Notify>

...