This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Please verify if my understanding about EJB is correct Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Please verify if my understanding about EJB is correct" Watch "Please verify if my understanding about EJB is correct" New topic
Author

Please verify if my understanding about EJB is correct

stara szkapa
Ranch Hand

Joined: Mar 27, 2003
Posts: 321
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

Joined: Oct 23, 2002
Posts: 21
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.


    "When you find yourself in the company of a halfling and an ill-tempered Dragon, remember, you do not have to outrun the Dragon. You just have to outrun the halfling."
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Please verify if my understanding about EJB is correct