Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


[java] RMIregistry

This topic is 5755 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

well, i''ve done a simple chat system on my computer using RMI. Until there, no problem. But i''ve 2 big questions: -what exactly is the role of ''UnicastRemoteObject''? (It doesn''t work if my chatter class doesn''t extend it, but i don''t understand why) -how to launch the RMIregistry on a distant server (on the web)? and how to maintain it running? how to see when it has crashed, and how to relaunch it automatically? Or is there a simplier possibility of using RMI without the registry? how?

Share this post

Link to post
Share on other sites
Last question first: No you cannot do RMI with using the rmiregistry.

Extending UnicastRemoteObject specifies that the object lives on the server. When the server returns an object the object is serialized, sent to the client, and then rebuilt. If the object extends UnicastRemoteObject however, the object is not serialized and sent to the client, instead an object-identifier is sent to client.

In essence, every class that does stuff on the server need to extend UnicastRemoteObject.

Version: 3.1
GED d- s:+ a- C++$ UL++ P++ L++ E W+ N+ o K? w !O M--(+) V-- PS+
PE Y+ PGP t-- 5++ X+ R(+) rv+(++) b+++ DI+ D(+) G e+>++ h r--> y+

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!