PDA

View Full Version : RmiProxyFactoryBean / Problem with Stub



bernie81
Feb 22nd, 2006, 08:21 AM
Hi!

I have problems with the rmi-stub which is generated after this definition:

<bean id="servicesCi" class="org.springframework.remoting.rmi.RmiProxyFactoryBe an" singleton="true">
<property name="serviceUrl" value="rmi://172.21.1.104:1099/ServicesCi"/>
<property name="serviceInterface" value="ams.seci.ServicesCi"/>
<property name="lookupStubOnStartup" value="false"/>
</bean>

The communication to the rmi-server works. When I stop / restart the rmi-service the rmi-client doesn't take notices of this situation (no failures, the client "simulates" a correct communication!)...

How could I edit the bean definition to get a refetching / refreshing of the stub?

I used the properties "cacheStub false", "refreshStubOnConnectFailure true" but nothing changed... :confused:

Some idea?

Bernie