• 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

Please verify if my understanding about EJB is correct

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Given:
Home Interface
Remote Interface
EJB
My understanding is as follows:
1) EJB doesn't implement Remote Interface
2) Remote Interface is implemented by container
3) EJB is pooled
4) Object which implements Remote Interface is not pooled
5) Object which implements Remote Interface has reference to EJB and calls it's methods
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like you have it about right. Summarizing from O'Reilly's Enterprise JavaBeans 3rd ed.:
  • Entity bean instances are definately pooled.
  • Stateless session bean instances are probably pooled.
  • Stateful session bean instances are not pooled.


  • I can't find any comments on pooling and message driven beans, but they are similar in some respects to stateless session beans, so I would expect there is some kind of pooling involved there as well.
     
    reply
      Bookmark Topic Watch Topic
    • New Topic