• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Difference b/w create() and ejbcreate()

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am novice to ejb. I am confused with the difference b/w what create() and ejbcreate() does??? please help me.

Thanks in advance..
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
create is defined in EJBHome interface,whose implementation is provided by the container

where as the ejbCreate is the one defined in your bean class.

The client access ejbCreate through create method of EJBHome, as client
cannot directly access the Bean Class.

Hope it helps.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The client access ejbCreate through create method of EJBHome, as client
cannot directly access the Bean Class.




This applies only for stateful session beans and entity beans. Stateless session beans ejbCreate() and the home interface create() have no relationship at all. When the client invokes the create() method on home, it only creates the EJB Object. The ejbCreate is invoked by the container, when it wants to add more beans to the pool.
[ August 05, 2004: Message edited by: Ryan Wong ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic