• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Difference b/w create() and ejbcreate()

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic