• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Difference between EJB Object and EJB Instance

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still I haven't get the answer.. Can anyone please clear my doubt.
Thanks & Regards,
M.S.Raman
 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Let's get him boys! We'll make him read this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic