This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlets session   Vs   Statefull Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets session   Vs   Statefull Session Bean" Watch "Servlets session   Vs   Statefull Session Bean" New topic
Author

Servlets session Vs Statefull Session Bean

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1371
What situation we choose Statefull Session Bean than servlets session?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Balaji Akella
Ranch Hand

Joined: Oct 29, 2003
Posts: 35
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


In the morning there is hope; in the afternoon, fulfillment; in the evening, memory; at night, peace.
Raja gopal Y
Greenhorn

Joined: Mar 08, 2005
Posts: 15
Hi Alll...

The Simple Answer is

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

Any Comments!!!


CHEERS !!!<br /> <br />RAJAGOPAL Y
 
jQuery in Action, 2nd edition
 
subject: Servlets session Vs Statefull Session Bean
 
Similar Threads
Design Decision help needed
what is the diffence between HttpSession and StatefullSessionBean
Statefull session Bean Vs Servlets Session
Ejb session Vs Servlet Sessions
can statefull session bean be exposed as a web service