wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes http session object,ejb session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "http session object,ejb session bean" Watch "http session object,ejb session bean" New topic

http session object,ejb session bean

sak sha

Joined: May 02, 2006
Posts: 3
What is difference b/w HttpSession object,Stateful Session bean in EJB to hold state info?Why is Stateful session bean adavantageous?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697

Actually these days almost no one uses stateful sessions beans, most people use stateless session beans. So the HTTP session is really the best way to store temporary session in a J2EE application.

If you want a longer answer go on Google and look up stateful session beans... the reviews aren't very positive.

My Blog: Down Home Country Coding with Scott Selikoff
Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

it is almost incorrect that "Actually these days almost no one uses stateful sessions beans" , almost everywhere that people need to keep track of a session in an enterprise application they use statefull session beans.
indeed an stateful session bean fulfill many requirements that you may need in an enterprise application , like session persistence... :-) .

people use stateless session beans when they do not need to keep track of a session and they have similar response for every request that they need to process.

http sessions are very good when we have a web front end , but at least when we have a fat client we will use Session beans, application servers provide very good replication over session beans , so again you will use a session bean when you are going to use application servers extra features.

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
I agree. Here's the link: http://aspose.com/file-tools
subject: http session object,ejb session bean
Similar Threads
Bean object updated by all 3 layers, is it good?
Session Management in Clustering
how to handle session in EJB