bertrand moulard

Greenhorn
+ Follow
since Feb 08, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by bertrand moulard

Thanks for your answer.

For the first point, I thought it might be the case and I removed the callbacks and replaced the RMI event propagation by a socket client-server system.

For the second point, it's because the routers of the networks where we want to install our system don't support that feature. They are cheap and nasty, and are installed in so many locations that we can't even start thinking about replacing them.

Thanks again

Bertrand
15 years ago
Hello

I wrote a RMI server and a RMI client. The client calls some methods on the server and the server keeps a reference of the client to send some events.

Everything works great on the local network.

I tried to run it over the internet and in order to do so, set the property java.rmi.server.hostname=[public-ip-of-the-server-router]. I now have two different problems.

1 - For the server to be able to call back the client, I had to set the java.rmi.server.hostname=[public-ip-of-the-client-router] and forward the port 1099 to the client machine on the client router. I would like to be able to avoid that so that anyone could run the client without having to worry about router port forwarding. Ideally the customers could run the client anywhere and we can't excpect them to know how to configure a router.

2 - If I set java.rmi.server.hostname to the public ip on the server, it is no more available to the eventual clients that could run on the same local network as the server. That is because the public ip is not qualified from within the network. Is there a way to have the server available both on the public ip and the LAN ip?

Many thanks in advance.

Bertrand
15 years ago
Thanks for that, it's been helpful!
16 years ago
I'm fairly new to RMI and I'm writting test code to see how things work. I wrote a server that registers itself and a client that connects the server and call it's methods. The thing I don't understand is how to get the server to call client methods. Say something happens on the server and it wants to notify all the connected client without having them asking anything? Is there a simple way to do that? (I've got that annoying feeling that I'm missing something really obvious...)

Thanks (and sorry if the question is stupid)
16 years ago
Thanks, but I was talking about the eclise java doc. Jface, swt... Not the standard one.
16 years ago
I can browse the API documentation online fine, but I can't seem to find any link to download it to use it locally. Anyone know where I can find that??

Thank you very much
16 years ago