• 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

ejbCreate method

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There is no ejbCreate() method in the session bean interface but bean developer has to implement the corresponding the ejbCreate() method in the stateful session bean or ejbCreate() in case of stateless session bean. Why this assumption is left to the bean developer.

By chance if the bean developer forget to define the ejbCreate() in a bean class or create() in home interface of a Stateless Session Bean. What will happen?

Thanks & Regards,
M.S.Raman
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lets play by rules !! For Stateless Session Bean, the "Bean Rule" states we MUST have a create() in the home interface and this should be matched with a corresponding/matching ejbCreate()method in the Bean Class.

A CreateException will be thrown back to the client if the Bean Provider forgets to declare the above methods

- Sundar, IBM India.
 
reply
    Bookmark Topic Watch Topic
  • New Topic