File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: when the home object will be created??
 
Similar Threads
regarding ejbHome object reference in setEntityContext
isIdentical understanding
Local Home
What does the JNDI lookup return?
Stateless Session Bean setSessionContext operations