Client timeout when using WCF through Spring.net

守給你的承諾、 提交于 2020-01-25 09:22:05

问题


I'm using WCF through Spring.net WCF integration link text

This works relatively fine, however it seems that WCF and Spring get in each other's way when instantiating client channels. This means that only a single client channel is created for a service and therefore the clients get a timeout after the configured timeout is expired since the same client channel has been open since it was instantiated by Spring.

To make the matters worst, once a channel goes to a fault state, it affect all users of that service since spring doesn't create a new channel for each user.

Has anyone managed to use WCF and Spring.net work together without these issues?


回答1:


I've created a small library to help you with Spring.NET in these circumstances. You can find the svn repo here. More info can be found on my blog.



来源:https://stackoverflow.com/questions/1536623/client-timeout-when-using-wcf-through-spring-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!