You can define sockets for the stub and the skeleton (Class
RMISocketFactory).
---schnipp---
public class HelloImpl implements Hello{
public HelloImpl() throws RemoteException{
UnicastRemoteObject.export(this, 80, new MyClientFactory(), new
MyServerFactory());
}
---schnapp---
If you need a complete example, write me.
RMI is written for use in an Intranet. A better way is to use Webservices
to solve your problem (e.g. AXIS).
Andres
On 13 Sep 2004 12:50:21 -0700, Robert Dodier <>
wrote:
> Hello,
>
> Browsing the web & newsgroups, it looks like this problem doesn't
> have any kind of easy solution, but let's see if someone knows different.
>
> I want to have a RMI client behind a firewall and a RMI server
> behind another firewall. I don't have any control over the firewalls.
> I know port 80 will be open for http traffic, but that's it.
> The web server on either side isn't the same as the machine running
> the RMI client or server.
>
> I want the client to be able to call methods on server objects
> and also to enable callbacks from the server to the client.
>
> What can be done in this case? I've read the RMI docs at Sun,
> browsed through a few dozen webpages & news messages, and the
> situation looks pretty dark, actually. Maybe someone has cause
> for optimism here. Thanks for any information.
>
> Robert Dodier
--
Using Opera's revolutionary e-mail client:
http://www.opera.com/m2/