Re: 2-way RMI-Connection
Felipe Santos Andrade <[email protected]> Sat, 26 May 2007 17:06:00 -0300
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Take a look: http://lipermi.sf.net ;o) On 5/26/07, Michael Tomuschat <[email protected]> wrote: > > Hi, > > I want to write a client/server program. The client (an applet) can send > commands to the server and the server can send status-information to the > client. > > the server binds the command-class to the rmiregistry so the client can > send commands to the server. The other way round the client registers his > status-class in the same rmiregistry, so the server can update the > client's status, when something changes. > > This works perfectly well, when client and server are on the same host. > But when the client is on a remote machine it cannot bind the > status-interface to the rmiregistry any more (Access Exception: registry > rebind disallowed from non-local host) > > So, how can I bind the status-class on the non-local host, or if this is > not possible, how can I make the server call the applet's status-class?? > > Is RMI the right tool for this task?? > > Thanks for any tips > > Michael > > > =========================================================================== > To unsubscribe, send email to [email protected] and include in the > body > of the message "signoff RMI-USERS". For general help, send email to > [email protected] and include in the body of the message "help". > > For a list of frequently asked RMI questions please refer to: > http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html > > To view past RMI-USERS postings, please see: > http://archives.java.sun.com/archives/rmi-users.html > -- [ ]s, Felipe Santos Andrade =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html