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 cli开发者_StackOverflow中文版ent died and I had to recreate it.
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.
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
精彩评论