• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
This is my favorite show. And this is my favorite tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic