Hallo everybody,
I'm sure my
question will cause a lot of you to think: "Why don't just use google, before
asking such a newbie question". The surprise is (for me, at least), I did it. I just can't figure out, how to use the
distributor.
Starting with
the FullDuplex sample, I want to switch
a distributor in the middle.
At client
side I, just changed the unicast bus config section to deliver the messages to
the distributorControlBus:
<UnicastBusConfig DistributorControlAddress="" DistributorDataAddress="">
<MessageEndpointMappings>
<add Messages="Messages" Endpoint="distributorControlBus" />
</MessageEndpointMappings>
</UnicastBusConfig>
When it
comes to the distributor runner config, I'm not sure any more. I guess, I have to tell the distributor
something about the retrieved messages and which assembly to load for them. Should I just uncomment the code like this:
<UnicastBusConfig DistributorControlAddress="" DistributorDataAddress="">
<MessageEndpointMappings>
<add Messages="Messages" Endpoint="messagebus" />
</MessageEndpointMappings>
</UnicastBusConfig>
Something
about Endpoint="messagebus" makes me unhappy. But I don't
know what to do else.
And the
biggest problem is the Server side. What
should I change in those sections:
<MsmqTransportConfig
InputQueue="messagebus"
ErrorQueue="error"
NumberOfWorkerThreads="1"
MaxRetries="5"
/>
<UnicastBusConfig DistributorControlAddress="distributorcontrolbus@server" DistributorDataAddress="distributordatabus@server">
<MessageEndpointMappings>
</MessageEndpointMappings>
</UnicastBusConfig>
<MsmqSubscriptionStorageConfig Queue="subscriptions" />
I will appreciate
any tip, hint, link or book that will help me understanding nServiceBus better.
Stefan
Rosenberger