Results 1 to 4 of 4

Thread: why i don't need the stub and skleton class for spring RMI ?

  1. #1
    Join Date
    May 2005
    Posts
    1

    Default why i don't need the stub and skleton class for spring RMI ?

    why i don't need the stub and skleton class for spring RMI ?

  2. #2
    Join Date
    May 2005
    Location
    London, UK
    Posts
    21

    Default

    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.

  3. #3
    Join Date
    May 2005
    Posts
    394

    Default

    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

  4. #4
    Join Date
    May 2005
    Location
    London, UK
    Posts
    21

    Default

    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
    Last edited by robyn; May 16th, 2006 at 04:35 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •