File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes RMI client callback stub Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI client callback stub" Watch "RMI client callback stub" New topic

RMI client callback stub

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
I am new to RMI.
We have a server component that runs within its own JVM.It needs to callback on client applets/consoles etc.
Ordinarily,the client would implement an interface, and distribute the interface and remoting stub to the server ,for the server to callback on.
However,rather than the client distributing the interface and stub,we wish the server to define a callback interface and implementation.
Thereby,the server can generate its own stub from the callback implementation.
This implementation can be provided to the client as a packaged class(along with the remote server stub and server interface).
The interested clients can extend this implementation.
The point that we wish to avoid through this framework,is the client providing the RMI stubs to the server for callback,as the server needs to be developed independently.
Is this a possible framework?
Any help will be appreciated.
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

This is called cross-posting. A no no:

Ed's latest article: A Java Reactive Generator
I agree. Here's the link:
subject: RMI client callback stub
jQuery in Action, 3rd edition