This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
I was looking at EJB API and came across Handle and HomeHandle interfaces, Could some please explain it as i could make any sense of this description provided in javadoc.
I do understand it is used as container contract to the ejb object, and used by the EJB container only.
Handle and HomeHandle: "A handle is intended to be used as a "robust" persistent reference to an EJB object"
Your understanding of Handle that is used only by the EJB container is WRONG!!!
"A handle is intended to be used as a "robust" persistent reference to an EJB object" <---- What does this mean?
It means that, once you get an handle to the EKB Object/Home, you can persist them (ata your client side). Later, you can make use of that persisted handle and make calls to your EJB objects/Home whenever you need to.
Refer to page no 65 in EJb spec to see how.
More ---- ".........interface. The home handle can be serialized and written to stable storage. Later, possibly in a different JVM, the handle can be deserialized from stable storage and used to obtain back a reference of the remote home interface...." <-- From EJB spec page no 59.