Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HOw invoke a method of data class?

 
Manish Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to RMI.
and so am totally confused about the following.
The Data class has not implemented the Serializable interface
so how the methods of the Data object can be called from the client?
Is it possible to return a Data object from a method of a RemoteObject
Please help me.
regards
Manish
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to read this:
Applying the Factory Pattern to RMI
When you have read it, then you have 'ProductImpl' witch in you case is a proxy object that implements the public methods of 'Data'
Rene
[ July 28, 2002: Message edited by: Rene Larsen ]
 
Manish Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rene

so there will be a wrapper class, that will have an object of the Data class and all the public methods of the Data class will be implemented in in this wrapper class. and then the implemented method will call the corresponding methods of the Data class..
Am I right?
with regards
Manish
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
Rene
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic