11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

amrameshreddy.blog.com268 CHAPTER 8 ■ IMPLEMENTING RELIABLE MESSAGING AND QUEUE-BASED COMMUNICATIONSramrameshreddy.blog.comopenTimeout="00:01:00" receiveTimeout="00:10:00"sendTimeout="00:01:00"deadLetterQueue="System" durable="true"exactlyOnce="true"maxReceivedMessageSize="65536" maxRetryCycles="2"receiveErrorHandling="Fault"receiveRetryCount="5" retryCycleDelay="00:30:00"timeToLive="1.00:00:00"useSourceJournal="false" useMsmqTracing="false"queueTransferProtocol="Native"maxBufferPoolSize="524288" useActiveDirectory="false">In this code, you set timeouts, the dead letter queue (should the message time out), thenumber of retries, and several related parameters. You also define that the client should usethe netMSMQBinding elements.Right-click the solution, and set the client, TradeService, as the start-up project. Run theapplication. Close TradeService, and let the client send messages. You can then browse theMSMQ queues in the Computer Management console and see the messages in the queue, asshown in Figure 8-6.Start another version of TradeService, and you should be able to see the same messagesbeing processed by the service.ramrameshreddyramrameshreddy

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!