im thinking about changing my chat connection to RMI. up to now i only submit strings where commands and messages are concatenated. but i can not measure, how much overhead is produced using rmi or if there are any other reasons not to use it.

Personally, if you're doing game networking, I say don't bother. For many things, it's a time-saving abstraction, but it IS low performance, which means you won't be able to use it in most games - so even if you start using it, you eventually have to do all the work of coding something better sooner or later anyway.

It's a good starting point if you want to do lots of remote method calling (um, funny that, given the name), although again performance can be an issue - but it's a lot better than your own attempt would be for the first 5 or 6 versions .

Several people here have used it successfully for game situations where perfroamcen didn't matter, and typically where it was less hassle to do remote method invocation than to write a protocol, and handlers, and ... and .... etc.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org