• 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!