• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between EJB Object and EJB Instance

 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can you please explain the difference between the EJB Object and EJB Instance?
When containers starts the EJB Service, Bean instances are created and container will maintain a instance pool of those bean instances. On jndi lookup the client is getting the EJB Home interface.
Am I right for following steps ?
After the lookup client is getting Bean Instance from the pool and based on find method /create method it will create a EJB Object with unique state information and associate the bean instance to the bean object. So can I say like that EJB Object is nothing but a EJB Instance with unique status.
Regards,
M.S.Raman
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still I haven't get the answer.. Can anyone please clear my doubt.
Thanks & Regards,
M.S.Raman
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
An enterprise bean�s instances are created and managed at runtime by a Container. Context interface allows instance to obtain information from Container.
Instances of a enterprise bean�s Remote interface are called EJBObjects.
What do u mean by "EJB Object is nothing but a EJB Instance with unique status"?
What is the "unique status" concept in ur post. Pls explain.
Seetesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!