dcsimg
<strong>holding the reference of stateful session bean</strong>
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Girinivas_A
Posted On:   Thursday, October 10, 2002 02:16 AM

When dealing with stateful session bean - Do I need to put the reference of the remote instance into my session and use it each time whenever i need to access the bean? Or is there anyother method by which the reference is tied to the client?
regards,

Re: <strong>holding the reference of stateful session bean</strong>

Posted By:   neeraj_pandey  
Posted On:   Thursday, October 10, 2002 05:35 AM

You don't have code to any thing explictly for referring to the same bean instance. It is automatically handled by the container.






Just once lookup the bean,create the EJBObject and use the ame name.






You can see any sample example which comes with the application server.

Re: <strong>holding the reference of stateful session bean</strong>

Posted By:   jaivir_singh  
Posted On:   Thursday, October 10, 2002 03:19 AM

The reference is associated to a client on its own , so you do not have to store it in session.Each time the client wants to interact with the SFSB , it should use the same reference every time.



The client will be able to communicate with the bean as long as the bean is not removed by him , or bean timeout doesent occus , which ever is earlier .



cheers

Jaivir
About | Sitemap | Contact