Hi,
I have a project which is exposing an RMI-Service (Pojo) via Spring. Another project is trying to get Access to this service but not using Spring.
Service:
Access:Code:<bean id="serviceExport" class="org.springframework.remoting.rmi.RmiServiceExporter"> <!-- <property name="registry" ref="rmi.registry"/>--> <property name="serviceName" value="DataService"/> <property name="service" ref="dataService" /> <property name="serviceInterface" value="de.idon.bo.dataService.DataServiceInterface"/> <!-- defaults to 1099 <property name="registryPort" value="1199"/>--> </bean>
What I get is:Code:DataServiceInterface dsi = (DataServiceInterface) Naming.lookup("rmi://myHost/DataService")
I have no other idea how to access the exposed RMI-service. What am I doing wrong that I don't get my DataServiceInterface-Object?Code:java.lang.ClassCastException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub at rmitester.main(rmitester.java:28)
Thanks for helping.


Reply With Quote