Hi David,
you've fallen foul of our documentation on the web site being a-head
of the code. The subscribe semantics as outlined, work on code in CVS
head. There will be a new binary distribution (ServiceMix 1.1) which
will support subscriptions soon (scheduled for the beginning of
October).
cheers,
Rob
On 26 Sep 2005, at 11:49, David Black wrote:
Hi,
Using the servicemix 1.0.1 binary, I'm testing out subscribing to
the output
of a component as described here:
http://servicemix.org/Publish+and+Subscribe+Routing
I have the following components in my servicemix.xml file:
<components>
<component id="sender" service="foo:sender"
class="com.pacemetrics.servicemix.components.pojo.TestSender"
destinationService="foo:receiver" />
<component id="receiver" service="foo:receiver"
class="com.pacemetrics.servicemix.components.pojo.TestReceiver" />
<component id="receiverex" service="foo:subscriber"
class="com.pacemetrics.servicemix.components.pojo.TestReceiverEx">
<!-- lets subscribe to the output of a component -->
<subscription service="foo:sender" />
</component>
</components>
I send 10 messages from TestSender and TestReceiver gets them fine.
The
receiverex component doesn't seem to get any messages - the
TestReceiverEx
class is just a copy of TestReceiver with a different log message etc.
I notice the example is shown using a <subscription/> tag, but the
description of it talks about a <subscribe/> tag. I've tried both,
no joy.
Any help much appreciated
thanks
David Black