Posted By:
Saurabh_Paliwal
Posted On:
Sunday, April 29, 2001 06:55 AM
Hi All, We know that hadle of an EJB is nothing , but a means to obtain the remote reference to the EJB Object(i.e we can obtain the EJBObject stub, by invoking the getEJBObject() on the handle). My doubt is, whether in case of stateful sessi0on beans, this handle contains their state as well or not ??? If it doesn't contain the state, then what is the use of the handlw, we can directly serailize the remote reference and use it when needed,instead of obtaining the handle, then serializing it and obtaining the remote reference from the handle. (In my opinion handle containg the state of the stateful session bean doesn't make sense, but then question arises, if handle is only a pointer to remote object, why not serailize the remot
More>>
Hi All,
We know that hadle of an EJB is nothing , but a means to obtain the remote reference to the EJB Object(i.e we can obtain the EJBObject stub, by invoking the getEJBObject() on the handle).
My doubt is, whether in case of stateful sessi0on beans, this handle contains their state as well or not ???
If it doesn't contain the state, then what is the use of the handlw, we can directly serailize the remote reference and use it when needed,instead of obtaining the handle, then serializing it and obtaining the remote reference from the handle.
(In my opinion handle containg the state of the stateful session bean doesn't make sense, but then question arises, if handle is only a pointer to remote object, why not serailize the remote reference instead of handle)
Any help is appreciated.
Thanks in advance
Saurabh
<<Less