...
You can subscribe to the output of an endpoint as follows, using the <subscription <subscriptionSpec service="serviceQName"/> tag. (You can include as many as you like inside a <component<subscriptions/> tag
Wiki Markup |
---|
{snippet:id=subscribe|lang=xml|url=http://svn.servicemix.codehaus.org/*checkout*/branches/trunk/common/servicemix-1.1/basecomponents/src/test/resources/org/apache/servicemix/components/jms/example-endpoint-subscription.xml} |
...
To avoid confusing JBI users, it is an error for a message to not be deliverable using the normal JBI sematics. If you wish to allow no message to be dispatched in the normal JBI manner and want to use just subscriber based routing you can disable the JBI error by setting the failIfNoDestinationEndpoint flag on each <component<activationSpec/>.
Wiki Markup |
---|
{snippet:id=publish|lang=xml|url=http://svn.servicemix.codehaus.org/*checkout*/branches/trunk/common/servicemix-1.1/basecomponents/src/test/resources/org/apache/servicemix/components/jms/example-endpoint-subscription.xml} |