• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confirmation Required

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For session beans CreateException for ejbCreate in bean class is optional.
But for entity beans CreateException for ejbCreate in bean class is Mandatory.


Thanks
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The CreateException is optional in both the cases i.e entity bean class & session bean class in ejbCreate<method>
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Specification 10.6.4
For ejbCreate<METHOD> methods-:

The throws clause must define the javax.ejb.CreateException. The throws clause may define arbitrary application specific exceptions.
 
Awishek sinha
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes very true its written in specs that CreateException is mandatory in ejbCreate in bean class so sorry & thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic