Question

I am currently working on a WCF - WSIT integration task. I am using WS-ReliableMessaging with WCF and ws2007HttpBinding.

Reliable session is set up correctly, I am using InstanceContextMode.PerSession and my service instance is killed off after one minute inactivity.

My only concern is that I am not sure how I can create a WCF proxy initialized with an existing OperationContext's SessionId. The Visual Studio generated proxy doesn't seem to accept a SessionId as a constructor, etc.

I would like to be able to reconnect to the active service using the SessionId even if my proxy client died and I had to recreate it.

Was it helpful?

Solution

As I know reliable session in WCF lives only if both client and server are alive. Reliable session is on channel level implemented as WS-ReliableMassaging wich offers transport level reliablity - it means it can handle lost messages, in order delivery, resending messages etc. = reliability is only to overcome unreliable transport protocols like HTTP.

For scenarios where any participant can "die" or go offline you have to use messaging (MSMQ in MS world). When integrating with Java world you will probably need other messaging platform based on JMS.

OTHER TIPS

you can use durable service

http://www.wcftutorial.net/How-to-Create-Durable-Service.aspx http://blogs.microsoft.co.il/blogs/egady/archive/2008/01/05/wcf-3-5-durable-services.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top