Server Configuration

The server configuration also has two key elements.

The first is the connection strings which is used to specify the service bus connections to use:

<connectionStrings>
<add name="ServiceBusConnection" connectionString="Endpoint=sb://.servicebus.windows.net/;SharedSecretIssuer=;SharedSecretValue="/>
</connectionStrings>


The second area is the AppFx.ServiceBus receiver configuration. This custom configuration section allows you to specify a set of listeners which will poll a service bus queue or subscription and specify how many threads to use.

<appfx.servicebus.receiver
defaultMaxRetries="3"
defaultMessageHandler="AppFx.ServiceBus.Receiver.MessageHandlers.UnknownMessageHandler, AppFx.ServiceBus.Receiver">

<listeners>

<add name="DefaultOneWayListener" connectionStringName="ServiceBusConnection" messagingEntity="OneWaySampleQueue" noThreads="3"/>

<add name="SessionBasedTwoWayListener" connectionStringName="ServiceBusConnection" messagingEntity="rpcsamplesessionrequestqueue" noThreads="2"/>

</listeners>
</appfx.servicebus.receiver>


In addition to the basic configuration there are some more advanced settings which will be discussed later.

Last edited Jan 30, 2013 at 6:57 PM by michaelstephenson, version 1

Comments

No comments yet.