Already we have http session in servlets. so why we use session beans ejb?

Questions by sadashivarao   answers by sadashivarao

Showing Answers 1 - 1 of 1 Answers

tejaswee

  • May 16th, 2006
 

Dear,

Remember EJB is an API for distributed computing, it can be accessed form different client (CORBA, Thick Clients like Swings or stand alone Java programms etc..), including Servlets or JSP (Thin Client) which has HTTPSession for maintaining client specific data for intermediate calls to webcountainer since HTTP is stateless protocol. So EJB Spec has an Statefull Session Bean for this reason to retain client specific data in Application Layer (EJB Countainer). I have designed and developed so many application rarely I have gone for Statefull Session Bean since it is a overhead to EJB Countainer since they are not pooled.

Cheer's
Tejaswee

  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