View Full Version : why i don't need the stub and skleton class for spring RMI ?
May 19th, 2005, 08:36 AM
why i don't need the stub and skleton class for spring RMI ?
May 23rd, 2005, 05:08 PM
Spring wraps your remote wannabe object in an adapter class that is a generic remote object, and registers it with the RMI registry. On the client side, Spring uses AOP to look up and invoke the remote wrapper object. The stub for the generic remote object is already generated and provided by Spring.
Have a peek in org.springframework.remoting.rmi.RmiInvocationWrap per & org.springframework.remoting.rmi.RmiClientIntercep tor for more details. Clever stuff if I say so myself.
May 25th, 2005, 06:50 AM
Could RmiInvocationWrapper be used on the client side to create a RMI object from a POJO, which could be registered with the server, so the server can do callbacks?
Take a look at my post on Bi-directional remoting
May 25th, 2005, 05:22 PM
Yes, this should be possible. See http://forum.springframework.org/showthread.php?t=14684. However, there seems to be a bug in Spring 1.2 which I've raised in Jira (http://opensource.atlassian.com/projects/spring/browse/SPR-982)
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.