File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes How many instances are created? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How many instances are created?" Watch "How many instances are created?" New topic

How many instances are created?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

I am a little bit confussed, and hoping you guys can help me out. I am working with RMI, and I don't know how many instances are created for Remote Objects. This is in regards to the Developer's exam, but as RMI in general, that's why I posted here.
OK, I have an object that is bound in the registry. If multiple clients lookup the object, does each client get their own version of the object, or is there still only one object? If there is only one object, how do I make the server create some kind of class on the server as a remote object, that stays on the server, but the client can call methods on.
Or is it like the RMI tutorial at Sun that has a Task object that is passed back to the server that is implementing and interface that has a method called executeTask().
Thanks for your help

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Peter Tran

Joined: Jan 02, 2001
Posts: 783
I'm going to move this to the Developer's Certification for you.
I agree. Here's the link:
subject: How many instances are created?
It's not a secret anymore!