PDA

View Full Version : Sao的生命周期问题


hfaycq
07-19-2006, 07:25 AM
我使用的SAO方式,调用都是可以了的,但 生命周期太*了
现象:
打开了客户端之后,2分钟后,就会调用 错,这时如果重新开启服务端,这时客 端可以继*使用,可以推*,是服务端 对象生命周期出了问题,不知如何解决 ,有没有看得懂*文的朋友,能不能帮我 解决一下。
配置如下:
服务器端配置:
object name="GenericListBF" type="DotNetCore.BL.BF.GenericListBF, DotNetCore.BL.BF">
</object>
<object name="GenericListBF.rmi" type="Spring.Remoting.SaoServiceExporter, Spring.Services">
<property name="Service" ref="GenericListBF"/>
<property name="ServiceName" value="IGenericListBF"/>
</object>
客户端配置:
<object name="IGenericListBF" type="Spring.Remoting.SaoFactoryObject, Spring.Services">
<property name="ServiceInterface" value="DotNetCore.BL.IB.IGenericListBF, DotNetCore.BL.IB" />
<property name="ServiceUri" value="tcp://localhost:8005/IGenericListBF" />
</object>

hfaycq
07-19-2006, 09:39 AM
如果直接使用remoting的配置,则不会出 题

Bruno Baia
07-21-2006, 12:15 PM
Hi,

i can't read your post, but i can say that SaoServiceExporter is obsolete anymore, it's still in the build until we update the documentation and release the 1.1 Preview 3 version.

You should use SaoExporter instead, download the latest nightly build here (http://www.springframework.net/downloads/nightly/) and take a look to the Calculator sample and to the Spring.Services tests.

Cheers,
Bruno