aspose file tools
The moose likes Servlets and the fly likes Servlets session   Vs   Statefull Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 1300
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlets session Vs Statefull Session Bean
 
Similar Threads
Ejb session Vs Servlet Sessions
can statefull session bean be exposed as a web service
what is the diffence between HttpSession and StatefullSessionBean
Design Decision help needed
Statefull session Bean Vs Servlets Session