开发者

Spring .NET, WCF and Singletons

开发者 https://www.devze.com 2023-01-28 07:33 出处:网络
It appears there\'s some issue integrating Spring .NET with WCF for getting singleton semantics. I looked around a bit on the net but I couldn\'t find anything conclusive.

It appears there's some issue integrating Spring .NET with WCF for getting singleton semantics. I looked around a bit on the net but I couldn't find anything conclusive.

Has anybody used Spring.Net with a WCF service where the instance context mode has been set to Single, Concurrency Mode set to multiple and the object definition开发者_StackOverflow in spring configuration marked as a singleton?


Check the Spring documentation : http://www.springframework.net/doc-latest/reference/html/wcf.html

"The object must be declared as a 'prototype' object, i.e. not a singleton, in order to interact correctly with WCF instancing."

HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消