Re: (URGENT) How to make client communicate with another client without using server
Gregg Wonderly <[email protected]>
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Abdullah Abdullah wrote: > Hello everyone > > this is the first email from me so, i hope someone can help me. I would be > grateful if anyone can tell me how to make a client communicate with > another > client directly without > using the server in the middle ??? Peer to peer communications, with RMI, always requires one JVM to have a remote object reference to another JVM's export object. The rmid mechanism is tailored toward more static services. If you have a bunch of JVMs that you want to talk to each other, and static addresses, and RMID are a little too difficult to manage, then you might try using Jini instead. The Jini lookup server will allow you to dynamically register 'services' that 'clients' can lookup, download and use. This is the most flexible way. And, with mobile code, the downloaded 'service' might just be a SOAP mechanism, a simple socket mechanism or a RMI type endpoint. The Jini Extensible Remote Invocation (JERI) stack provides the ability to plug in may types of security at deployment time so that different environments can use the same code with different security requirements. Gregg Wonderly =========================================================================== 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