Forums Register Login

Stateful bean doubt

+Pie Number of slices to send: Send
hi,
Suppose i'm using stateful session bean and i want my client to use the same EjbObject which got created for the first time i can put the ejbobject in a session..
So the subsequent call to client will not create new ejbobjects and would use the object present in the session.My doubt lies in, if the same bean instance would be used by the container.In the case of stateful bean, it maintains the state and as a result of it, even if the instance is not used for a long time, the state of the is copied to the secondary storage and if later used would take a bean instance and restore the state.Will the containerl restores the state and the value of the instance varaiable is maintained throughout the client session.?
Cheers
Geeta
+Pie Number of slices to send: Send
in that case state will be restored as it's a stateful bean but you won't be able to access ejbobject stored in a session as session is expired
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 578 times.
Similar Threads
Doubt in SessionBean contract(ejb 3.0 core)
ejbobject doubt
Doubt on EJBObject
SFSB Doubt
Fundamental doubt in SLB
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:33:40.