How do you check whether the session is active in Stateful session bean

Showing Answers 1 - 4 of 4 Answers

J. P. Naidu

  • Jul 28th, 2005
 

In Stateful session bean session is not itself a separate entity. it is contained in the bean it self. So in order to check tht we need the check whether the Stateful session bean is present or not which is done by just invoking the home interface with the jndi

  Was this answer useful?  Yes

Use the callback methods ejbActivate() and ejbPassivate() to throw a user-defined message whenever the container calls these methods to activate or passivate a stateful session bean instance.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions