HighTechTalks DotNet Forums  

WCF / MSMQ - Multiple Client Queues

Dotnet Framework microsoft.public.dotnet.framework


Discuss WCF / MSMQ - Multiple Client Queues in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Demetri
 
Posts: n/a

Default WCF / MSMQ - Multiple Client Queues - 11-15-2007 , 05:12 PM






So, how would one define multiple client queues?

In other words, this is how you declare a single client queue....

<client>
<endpoint name="ClientResponseEndpoint"
address="msmq.formatnameIRECT=OS:.\private$\demo Client"
binding="msmqIntegrationBinding"
bindingConfiguration="MessageProcessorBinding"
contract="Service.IMessageProcessor">
</endpoint>
</client>

The need though is to be able to send the same message to multiple queues.
So various different clients can get the same message.

Or is there a better way? I want to stick with WCF though.
--
-Demetri

Reply With Quote
  #2  
Old   
Demetri
 
Posts: n/a

Default RE: WCF / MSMQ - Multiple Client Queues - 11-15-2007 , 06:34 PM






Nevermind, I figured it out...

You can have those queues such as:

<client>
<endpoint name="ClientResponseEndpoint"
address="msmq.formatnameIRECT=OS:.\private$\queu e1"
binding="msmqIntegrationBinding"
bindingConfiguration="MessageProcessorBinding"
contract="Service.IMessageProcessor">
</endpoint>
<endpoint name="ClientResponseEndpoint2"
address="msmq.formatnameIRECT=OS:.\private$\queu e2"
binding="msmqIntegrationBinding"
bindingConfiguration="MessageProcessorBinding"
contract="Service.IMessageProcessor">
</endpoint>
</client>

But you must specify the endpoint name when you use the contract class:

public partial class MessageProcessorClient :
System.ServiceModel.ClientBase<IMessageProcessor>, IMessageProcessor
{
public MessageProcessorClient(string configurationName)
:
base(configurationName)
{
}
}
--
-Demetri


"Demetri" wrote:

Quote:
So, how would one define multiple client queues?

In other words, this is how you declare a single client queue....

client
endpoint name="ClientResponseEndpoint"
address="msmq.formatnameIRECT=OS:.\private$\demo Client"
binding="msmqIntegrationBinding"
bindingConfiguration="MessageProcessorBinding"
contract="Service.IMessageProcessor"
/endpoint
/client

The need though is to be able to send the same message to multiple queues.
So various different clients can get the same message.

Or is there a better way? I want to stick with WCF though.
--
-Demetri

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.