File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes connection object... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "connection object..." Watch "connection object..." New topic
Author

connection object...

Varaku Venkata
Ranch Hand

Joined: Mar 17, 2002
Posts: 30
Hi,
I have some doubts regarding the connection object placed in the RMI server.
1) If an object is placed in the RMI registry ..
whenever a client tries to obtain the registered object does he get the same object or a copy of the registered object ?
2) How to provide stubs to each client..(are the stubs different for each client or can we use same stub for different clients ?
can somebody guide me ?
[ April 10, 2002: Message edited by: Varaku Venkata ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

1. He gets the same object.
2. After you havae rmic 'd your class you include the stub with the client files. So therefore the "class definition" of the stub file is the same in all clients.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Varaku Venkata
Ranch Hand

Joined: Mar 17, 2002
Posts: 30
Thanks Mark.....
khad M
Ranch Hand

Joined: Nov 26, 2001
Posts: 48
Hi Mark and Varaku
i get confused now......pls...clarify.
If the same object is accessed by different clients is there no possibility for data corruption??? .... ....
Let me know ASAP.
Khad M
SCJP2.0
Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
Yes . Sure.
You have to take care for data not getting corrupted.

Sam
[ April 11, 2002: Message edited by: Mathew Sam ]
khad M
Ranch Hand

Joined: Nov 26, 2001
Posts: 48
how to take care.......can u elaborate....pls...

Khad M
SCJP2.0
Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
Use Synchronization
Sam

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection object...