aspose file tools*
The moose likes Distributed Java and the fly likes Question about RMI and which objects to tag with SerialID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Question about RMI and which objects to tag with SerialID" Watch "Question about RMI and which objects to tag with SerialID" New topic
Author

Question about RMI and which objects to tag with SerialID

Kenny Johnson
Ranch Hand

Joined: Jan 01, 2007
Posts: 37
When I use RMI, are the only objects passed over the network ( and hence need to have a serialID specified ) the ones that you bind to your RMI registry, or are other classes - like exceptions throw in your binded objects also serialized and passed around?

so say I have a Car class, and I bind it to my registry so others can perform remote method invocation on it. My car class contains tires ( of class Tire ) and it also could possibly throw some custom exceptions ( like say, OutOfGasException ). Should Tire and OutOfGasException have a serialID? Are these objects serialized?

Thanks for any help given!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about RMI and which objects to tag with SerialID