Thanks Ali and Roger for your answers .
From the replies what I understand is lets say I have an ArrayList as an instance level variable .
As an example ( Please ignore the incorrect names of the Interfaces that a Sessionbean needs to implement - just trying to come up with a scenario .
My doubts being :
You'll have to keep the reference to the stateful session bean at some place like user's session. Otherwise if you loose the reference, it will remain in the pool and will be swiped out after sometime.
So if I use the HttpSession to store the reference of sesion bean :
1 >should I store the Handle of : EjbHome or EjbObject ?
2 >Can I store the EjbHome or the EjbObject itself
3 >So once I get the reference to my Bean - I can access the state which is maintained ( in example in ArrayList called "empList" ?
Thanks for all the help.
Regards,
-anagha