Hi,
I’m trying to do something similar to what is described in Jira at this link:
http://jira.springframework.org/browse/SPR-982
Essentially, I’d like to create a remote object on a server that contains remote services as instance variables. I’m exporting this remote object on the server using RmiServiceExporter and calling it from the client using RmiProxyFactoryBean. This works fine. However, I’d like to be able to get a reference to the remote services (contained within the remote object) on the client. I’ve been able to create the remote services within the remote object as proxys using RmiProxyFactoryBean, but when I call a method on the remote object from the client to return the proxy to one of the remote services, I get an exception saying that RmiProxyFactoryBean is not serializable.
I’ve done a lot of web searches on this and also looked through the Spring Framework source code for classes RmiServiceExporter and RmiProxyFactoryBean, but I still have not been able to figure out a way to do this using Spring. The alternative is to do it using RMI classes, but that is definitely not my first choice.
I’ve found the links below related to this issue, and based on what I’ve read so far, my understanding is that this cannot be done in a clean way with Spring. But before I give up on this effort, I’d like to get confirmation of that.
http://forum.springsource.org/showth...n+serializable
http://forum.springsource.org/showthread.php?t=14684
Any help on this will be greatly appreciated!
Thanks,
Pat


Reply With Quote