RMI and internet

Hi all, I’m considering using RMI for developping a network for a MMORPG, do you think it is a good idea?

I’ve tried a few examples that work using my localhost address, but they don’t work anymore when I use internet addresses, I got a TimeOutException after 5 minutes, it seems that the programs gets stucked at the line: Naming.rebind(“rmi://84.234.141.646/RMITest”,object);

Any help would be much appreciated.

Thanks guys

From what i have heard about RMI i dont think it is suitable for making a MMOG, you should use a custom binary format.

No. Its a very bad idea for anything that is latency or bandwidth sensative.

For a number of reasons. To give the big picture…

(1) RMI itself is based on a synchronous handshaking protocol across TCP/IP.

(2) RMI requires destributed garbage collection, which means it reuiares some conatant conenctivity and flow of information above and beyond anything yo uare trying to communicate.

(3)RMI depends upon serialization which is a very inefficient way to try to transfer small bits of information. It is also very expesnive to both pack and unpack the information as comapred to a simpel packet protocol.