permaculture playing cards*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes when the home object will be created?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "when the home object will be created??" Watch "when the home object will be created??" New topic
Author

when the home object will be created??

Srinivasan Mani
Ranch Hand

Joined: Apr 03, 2002
Posts: 36
When and who will create the first home object thats going to be shared by the clients??
Is that on first client call or at the time of deployment??
Zul Chewanabas
Greenhorn

Joined: Mar 26, 2004
Posts: 25
you provide the home interface (by placing it in ejb-jar.xml), Container creates the class at runtime. It also depends on the bean type. If I'm not mistaken, stateful bean's home is unique for each client. but stateless beans can share the same home object.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
I believe it happens at deployment. When you deploy an archive file, the container creates the home and local home objects and binds them within its JNDI tree, using the names specified by the appropriate deployment descriptor. In the case of WebLogic, this file is named weblogic-ejb-jar.xml. Here is an example.

[ March 28, 2004: Message edited by: Roger Chung-Wee ]

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Srinivasan Mani
Ranch Hand

Joined: Apr 03, 2002
Posts: 36
Thank you Guys.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: when the home object will be created??
 
Similar Threads
What does the JNDI lookup return?
Local Home
isIdentical understanding
Stateless Session Bean setSessionContext operations
regarding ejbHome object reference in setEntityContext