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

EnterpriseBean, SessionBean 'n' Serializable

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
This being, My first technical post in this SCBCD forum, the question is simple too! I somehow got the answer to my query but wanted to have it ascertained from you people.

The javax.ejb.EnterpriseBean is an interface that extends java.io.Serializable. The javax.ejb.SessionBean interface extends javax.ejb.EnterpriseBean. Does this mean that it extends java.io.Serializable by default?

As per RMI-IIOP specification, any class that is composed inside another class, must explicitly implements java.io.Serializable for the assosiated objects to be Serialized. But when a class inherits from a parent, it inherits all the implemented interfaces also. Am I Right?

Thanks in Advance,
_Mani
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that's correct.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic