Versions Compared

Key

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

...

Code Block
langxml
<sm:activationSpec>
  <sm:component>
    <bean class="org.apache.servicemix.wsn.spring.WSNSpringComponent">
      <property name="requests">
        <list>
          <bean class="org.apache.servicemix.wsn.spring.SubscribeFactoryBean">
            <property name="consumer" value="http://servicemix.org/test/service/endpoint" />
            <property name="topic" value="myTopic" />
          </bean>
        </list>
      </property>
    </bean>
  </sm:component>
</sm:activationSpec>

WS-Notification messages

The following xml snippets are just examples of WS-Notification requests. You should refer to the specification for more informations.

Subscribe

Code Block
langxml
<wsnt:Subscribe
  xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
  xmlns:wsa="http://www.w3.org/2005/08/addressing">
  <wsnt:ConsumerReference>
    <wsa:Address>
      http://www.consumer.org/service/endpoint
    </wsa:Address>
  </wsnt:ConsumerReference>
  <wsnt:Filter>
    <wsnt:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">
      myTopic
    </wsnt:TopicExpression>
  </wsnt:Filter>
</wsnt:Subscribe>

...