Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets session Vs Statefull Session Bean

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What situation we choose Statefull Session Bean than servlets session?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A 'Statefull Session Bean' is an EJB component. Many servlet apps are written without EJB. For those apps, the ServletSession is the most convenient place to store data across web hits.
 
Balaji Akella
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In terms of a design consideration, Servlet's session is more relevant for maintaining a user's web session. Servlets is not best suited for the application specific data which could consist of data used for business logic. Stateful session beans are useful in this scenario.

Swamy
 
Raja gopal Y
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alll...

The Simple Answer is

"Statefull Session Bean doesn't support HTTP,where as Servlets support HTP"

Any Comments!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic