• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about RMI and which objects to tag with SerialID  RSS feed

Kenny Johnson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!