• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

CreateException for entity beans

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Enterprise JavaBeans by Monson-Haefel it says on page 78 about entity beans:

"Although it is not required by the EJB specification, some J2EE application vendors insist that ejbCreate() throw a javax.ejb.CreateException..."

However, 10.6.4 in the EJB2.1 specification says about entity beans, "The throws clause must define the javax.ejb.CreateException..."

Can anybody clarify this point for me ? Is it a MUST for ejbCreate() to throw CreateException ?

BR,
Sven Thor
 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
The throws clause of ejbCreate must define the javax.ejb.CreateException for entity beans.[ EJB 2.0 and EJB 2.1]

hope it helps.
[ July 15, 2005: Message edited by: sawan parihar ]
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is true for CMP beans, but BMP beans have the option to declare javax.ejb.CreateException.
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic