File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please verify if my understanding about EJB is correct

 
stara szkapa
Ranch Hand
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Eddie Sheffield
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • 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.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic