Re: 2-way RMI-Connection
Michael Tomuschat <[email protected]> Sat, 26 May 2007 22:32:57 +0200
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Organization | Ingenieurbüro Tomuschat |
| Message-ID | <[email protected]> |
Hi Jeff,
Thanks for your answer. Yes, I want to get access to the server from the
internet. And I thought of of polling routine but I think it's the more
elegant way to let the server tell the client, that there is a status change.
Also it is a matter of understanding how RMI (and Java) works (to both I am a
bloody beginner).
There seems to be as possibility to tunnel RMI-Requests through port 80 (but
most likely only in the direction from client to server).
I would be glad if you could send me some sample code. Many thanks in advance
Michael
On Samstag 26 Mai 2007, Jeff Rickard wrote:
> If you are using applets is it your intention to deploy this on a
> website for public use? You are going to encounter many problems with
> firewalls and the like with this two way connection scheme. Have you
> already decided not to go with a polling routine from client to server
> to check the status?
>
> I have done this with standard java/swing applications but never from an
> applet, I would imagine that you need to bind the listening port as part
> of the constructor, or during the initialization, for the client and
> then you just pass the ip address of the connection back to the server.
> This also requires that the stubs are at both ends so you need to have
> all the interfaces and what not set up that way as well.
>
> I don't know if that helps but if you need I could dig up some sample
> code that I have here somewhere from the application that I wrote doing
> that.
>
> Jeff Rickard
>
--
Dipl. Ing. Michael Tomuschat
Ing.-Büro Tomuschat Tel. : 07071-943866
Steinbößstr. 23 Fax : 07071-943867 (wenn Büro besetzt ist)
72074 Tübingen E-mail: [email protected]
===========================================================================
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