Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection object...

 
Varaku Venkata
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Varaku Venkata
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark.....
 
khad M
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to take care.......can u elaborate....pls...

Khad M
SCJP2.0
 
Mathew Sam
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Synchronization
Sam

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic