[2246] in java-interest

home help back first fref pref prev next nref lref last post

Re: Sending an object across the net...

daemon@ATHENA.MIT.EDU (Leon Hurst)
Wed Sep 27 10:01:46 1995

To: java-interest@java.sun.com
Date: Wed, 27 Sep 1995 12:22:46 (BST)
From: Leon Hurst <lahurst@maths.tcd.ie>

Forwarded message:
From lahurst Wed Sep 27 12:20:43 1995
Subject: Re: Sending an object across the net...
To: dhamner@email.unc.edu (Derek Hamner)
Date: Wed, 27 Sep 1995 12:20:43 (BST)
From: Leon Hurst <lahurst>
In-Reply-To: <Pine.A32.3.91.950922141229.123443C-100000@login0.isis.unc.edu> from "Derek Hamner" at Sep 22, 95 02:34:54 pm
X-Mailer: ELM [version 2.4 PL21]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1733      

> I have written simple client & server based on the sun.net classes and I 
> would like to know if it would be possible to extend the 
> DataInput/OutputStream classes to accommodate more complex types.  I 
> would like to be able to send any simple object across the network, and 
> then reconstruct it on the other side.  Is this possible?
> 

What types of objects? If you are talking about object migration
(where a "live" object is moved to a new location) then you should
consider the implications. Some of them are:

What if other (external) objects have invoked and are still executing
a method from the moving object. Can you move during such execution?
What about the execution stack? You will probably have to get a lock
on the entire object before it can be migrated.

What happens to attributes of the moved object which are references to
other objects. Will they work transparently across the net or will you
have to provide the transparency?

What will happen to references that other (previously local) objects
have to the moved object after it is moved? Will they become null or
work transparently?

Security is a big question unto itself. If you are doing this across 
The Net then both clients/servers and the migrated objects will have to
be mutually suspicous of each other. What would happen if I got hold of
your client class and started to send your server a load of cpu intensive
tasks such as 3d rendering apps(objects)?

Some of these problems are difficult and solutions to them will often
depend on what level off support Java and its packages provide. 

Good Luck,
Leon. 

-- 
email: lahurst@maths.tcd.ie
  www: http://www.maths.tcd.ie/~lahurst/
 LEGO: http://www.maths.tcd.ie/~lahurst/virtuallego.html

-- 
email: lahurst@maths.tcd.ie
  www: http://www.maths.tcd.ie/~lahurst/
 LEGO: http://www.maths.tcd.ie/~lahurst/virtuallego.html
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post