dcsimg
Reliable exactly-once transfer of objects
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sanjit_Singh
Posted On:   Wednesday, March 13, 2002 05:09 AM

""I have to design a system (to be implemented using a Distributed Object Technology such as Java RMI) which provides reliable exactly-once transfer of objects between client applications running on separate machines. Client programs should be able to upload arbitrary objects to servers able to store them. Other client programs should be able to retrieve these uploaded objects. You are required to design the components which these client programs will use to effect object transfer."" I was wondering if the above means "Objects" or "Instances of an Object". Which one of the following points (1 or 2) is applicable:: 1. We have a "Person" object with attr   More>>

""I have to design a system (to be implemented using a Distributed Object Technology such as Java RMI) which provides reliable exactly-once transfer of objects between client applications running on separate machines. Client programs should be able to upload arbitrary objects to servers able to store them. Other client programs should be able to retrieve these uploaded objects. You are required to design the components which these client programs will use to effect object transfer.""



I was wondering if the above means "Objects" or "Instances of an Object".
Which one of the following points (1 or 2) is applicable::



1. We have a "Person" object with attributes Name, Age and Address.
We have another object Dog with attributes Name, Owner etc.
Should the client be able to upload random "objects" like Dog, Person, Cat
etc to the server?



2. The other scenario is that there is one Object like Person (common to
Server and Client i.e. class files exist on both sides) and only different
instances of this person is uploaded and downloaded from the server. i.e.
John is an Instance of Person, Alexander is another instance. Thus, the
client uploads John which in turn is stored in the database along with the
other attributes. Another client uploads Alexander, his age and address.



I have asked the above as I can imagine that if an "Instance of the Object"
needs to be transferred between the server and the client, then the ".class"
file should be present on both the client and the server side.
Incase point 1 is true, then the Objects .class file needs to be tranferred
between server and client using TCP Sockets (and not by RMI).



Any help would be appreciated.

   <<Less
About | Sitemap | Contact