Andy is right Mansour please do some reading on this. EJB 3.x has Stateful Session Beans, Stateless Session Beans and Entities (NOT Entity Beans). The Sun tutorial is one of the most simple tutorials you can find on this. Entities on the other hand, will be explained in any tutorial of JPA. So to find out about Entities, read a JPA tutorial. This is a very good JPA tutorial http://schuchert.wikispaces.com/JPA+Tutorial+1+-+Getting+Started.
Yes the same Stateful Beans cannot be retrieved across multiple "web" requests unless you store the bean with use of a framework or HTTP Session. Stateful really indicates "not shared", and "not discarded as long as referenced". On Thu, Dec 3, 2009 at 1:44 AM, Mansour Al Akeel <[email protected]>wrote: > I am looking to maintain an object pool, that will be available to > server a request at anytime. If I am not wrong, statfull bean will not > work as it's ot server on request. I need to maintain the info between > these requests. I have to use Entity bean. Is this correct ? >
