This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Why Doesnt Stateful Session beans use Object Pooling. I know that they are activated and passivated by saving the state, but why not have a pool of objects to avoid creating objects again and again, the way it is with Entity and Stateless session beans
Joined: Sep 23, 2000
I have another basic questions ( these pop up in your head when you read a book for the first time, and never again ) why dont we have something like RMI over HTTP or RMI over IIOP over HTTP, so that the firewalls can be tackled and we can have distributed transactions possible.
Stateful session beans maintain conversational state between subsequent method invocations by the same client. This makes the methods interdependent so that changes made by methods to the bean's state can affect the results of subsequent method invocations. The difference between the Staeful and the Stateless session bean instance variable is that the instance fields of a stateless bean are not specific to one client. So if we have object pooling for a stateful session bean then also there will be no meaning as we shall have to maintain the conversational state between method calls.