• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spec: handle

 
JF Tordella
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
p137 code example on the bottom of the page implies that there is a method in ObjectInputStream class named readObject(handle) -- there is no such method that takes a handle as a parameter.
Wonder if they simply mean that the readObject when used on a stream that has a handle, can be used to reconnect with the EJB.
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically there is a method readObject() in ObjectInputStream which could be used to read serialized handle objects and cast it into a handle Object; i.e.
handle = (Handle)inStream.readObject();
where instream is of type ObjectInputStream; It might be what they tried to state here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic