• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it mandatory to include CreateException in throws clause of bean class(CMP)?

 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For CMP, spec (page-192) says throws clause must define CreateException for create methods. where as HFEJB says it may be.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book is wrong.
http://www.coderanch.com/t/160054/java-EJB-SCBCD/certification/Throw-CreateException-callbacks
 
Ramakrishnan Ponmudi
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roger Chung-Wee, thanks for giving clarification
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic