Alex Co
2009-06-20 13:20:09 UTC
(Sorry if this msg is duplicated. Not sure about the registration on this forum)
Hi all,
I am learnnig Jini.
I have a question for you that i till now didnt get an answer:
The subject is why serialization for Jini services. Please, read this thought:
Jini does not mandate the use of rmi as the communication protocol between
client and server, right?
So, for those that do not want to use rmi, the service interface must at least
implements serializable, right?
Then, on client side, if client needs to use a jini service it downloads service
classes definitions by http (for example) and the jini service object comes by
wire by using serialization on server side and deserialization on client side. Then
the proxy is constructed on the client side by "joining" the downloaded classes
definitions and the proxy object that arrives to client by deserialization.
My question is: why it is necessary downloaded class definitions and
deserialized proxy object to invoke jini service?
Why not just get the class definitions, instantiate them and call its methods?
What is the role of the proxy object there?
When using mobile code i understand that the proxy object must travel too in
order to save data and state by for invoke a Jini method are proxy objects
really needed too?
Many thanks
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 ***@java.sun.com
Hi all,
I am learnnig Jini.
I have a question for you that i till now didnt get an answer:
The subject is why serialization for Jini services. Please, read this thought:
Jini does not mandate the use of rmi as the communication protocol between
client and server, right?
So, for those that do not want to use rmi, the service interface must at least
implements serializable, right?
Then, on client side, if client needs to use a jini service it downloads service
classes definitions by http (for example) and the jini service object comes by
wire by using serialization on server side and deserialization on client side. Then
the proxy is constructed on the client side by "joining" the downloaded classes
definitions and the proxy object that arrives to client by deserialization.
My question is: why it is necessary downloaded class definitions and
deserialized proxy object to invoke jini service?
Why not just get the class definitions, instantiate them and call its methods?
What is the role of the proxy object there?
When using mobile code i understand that the proxy object must travel too in
order to save data and state by for invoke a Jini method are proxy objects
really needed too?
Many thanks
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 ***@java.sun.com