• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when the home object will be created??

 
Srinivasan Mani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Srinivasan Mani
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic