Using RMI for bidirectional communication
Sebastian Hahn <[email protected]> Sat, 21 Jun 2008 17:30:00 +0200
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've set up SSL-secured RMI server and client. The clients are able to access the server without any problem, but now I want the server to be able to use a callback to talk to the client. This works if the client is reachable (meaning it is not behind a NAT or firewall), but I'd very much like to be able to provide the same access for firewalled clients. Polling seems like a bad solution, and hopefully I won't need to do that... I have searched the archives and talked to a lot of people in java support channels on IRC, but they weren't able to say anything definite about the subject - many said it should just work, others said that callbacks can never work (which by now I know to be untrue). Is there a way for the server to use the already existing connection to the client to communicate with it (other then respond to method calls), and how can I do that? Thanks for your ideas! If you need example code or more explanations, I'll gladly provide that. Thanks Sebastian -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkhdHngACgkQCADWu989zuZa7QCg4zI4b1EnY/Sara3524JpOLDH c94AoJRTNABHd8J6GpnYQrHUPOvk5aUU =XOgS -----END PGP SIGNATURE----- =========================================================================== 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