Re: Why, at least, serialization?

Alex Co <[email protected]> Sun, 21 Jun 2009 16:33:58 -0600
Newsgroups gmane.comp.java.sun.jini
Message-ID <LISTSERV%[email protected]>
Thank you Niclas.

Well, I think I understood the jini concept already. May be i did not exp=
lain me=20
good in the question i made.

I know that the smart proxy, stub or local proxy abstract client from all=
. It just=20
have to call the method. The language spoken between server and=20
proxys/stubs is private and jini do not cares about that.

My question is in other direction! The LUS!

Jini is basically clients, servers and LUS(s), right?

Supose I what to develop a service and an smart proxy in Java. The servic=
e=20
has the method void helloworld(void). Nio need a smart procy in this case=
, but=20
consider that a smart proxy is then developed that opens a socket to the=20=

server on its constructor and provides a method called InvokeHello that=20=

invokes helloworld on the server.

The smart proxy do not have to be developed using RMI, I know that (and t=
hat=20
is very good!). In this case the smart proxy is just a class file that do=
 not=20
implements nor extends nothing.in the lus
The question is:
Can this class or an object of this class (smart proxy) be registered in =
LUS?
As far as i know that class must implements serializable, to be possible =
to=20
register it on LUS, right?=20

As far as i know serialization is to transfer live objects over wire. "Do=
wnload via=20
http is a way to transfer class files over wire".

To the best of my knowledge the client needs LUS to abstract localization=
 of=20
the server, but why server must instantiate a serializable class in order=
 to add=20
it to the LUS? Why LUS do not store class files instead of objects and th=
en=20
clientes discover LUS and dowload class files instead of serializable obj=
ects?


In this case, client needs only the class file not the live object stored=
 in the=20
LUS by server, right?

Once getting the class file, client instantiates it and call the method.


So, why serialization is obligatory on Jini?

Thanks a lot

Alex

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]