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

What is the Types for RMI/IIOP?

 
Ali Ragi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the Types for RMI/IIOP? It includes primitive type, Serializable type, and what else??
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy folks,
I'm back again for a little while
There's a slight difference between RMI and RMI/IIOP, but for the purposes of the exam, anything that is considered an RMI type is all you need to know. You do not need to understand the subtle differences between RMI and RMI/IIOP types.
The types are primitives, Serializables, Remote objects, an array of any of those things, and a Collection of Serializable or Remote objects EVEN if the Collection interface is not itself Serializable, as long as the Collection implementation is in fact Serializable (and most, although not ALL, are).
So, basically the only things that are not valid types are non-Serializable *objects*. But one bad apple spoils the rest of the collection, so if you have an array or Collection of objects, ALL the objects must be Serializable or references to Remote objects (which means a Serializable stub will be substituted).
cheers,
Kathy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic