« What's in a name? "Generate..." | Main | Demo application from TechEd Developers 2006 »

10/27/2006

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a012876b389bb970c012876c21ccd970c

Listed below are links to weblogs that reference Straight-forward WCF duplex communication over MSMQ?:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Mike

Thanks for the follow up, makes a lot of sense. I'm still really puzzled as to why when I configure the client to have a listen address and send a message from that client to a service the message doesn't get a ReplyTo header. It seems weird to me to have to switch on RM just to get a ReplyTo address. Any thoughts there as to why using a duplex channel doesn't just put a ReplyTo into the outgoing message without having to switch on RM? Clearly, putting RM on isn't really the answer like you explain here.

Christian Weyer

By adding a CompositeDuplexChannel we ask the WCF runtime that it should create a ClientRuntime on the service side (which is required to call back the client) and the client side will have a DispatchRuntime (which is required to receive the callbacks from the service). So we inform WCF that we need this behavior by adding the CompsiteDuplexBindingElement to our binding. However, in order to make sessions work we actually need some kind of session (at the end of the day sessions need some sort of a logical connection). So essentially but not necessarily we can use RS/RM for that matter (e.g. In WsDualHttp binding sessions mean RM and it uses the RM binding element). If RM is creating problems, of course you are free to create your own channel to add the necessary addressing headers required for your messaging scenario.

Slashene

here a solution to avoid using reliable session http://msmqduplexsample.codeplex.com/

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Shared items (Google Reader)