I've managed to do a successful lookup of a RMI service outside the Spring container. The service is implemented as a "regular" remote object in another JVM not in a Spring container.
When I tried to do the opposite, I ran into trouble:
Exception in thread "main" java.lang.ClassCastException: org.springframework.remoting.rmi.RmiInvocationWrap per_Stub
In order to be able to invoke remote methods in the client (not within a Spring container), I'd have to cast it to the interface.
However, that does not seem to work.
As far as I can conclude, RMI will be used just as the protocol for remote calls *between* 2 Spring containers. It cannot be used by a "regular" RMI client.
Is the above a correct observation?
Any insights and comments are most welcome.[/b]


Reply With Quote