wood burning stoves
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
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
Author

http session object,ejb session bean

sak sha
Greenhorn

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
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3740
    
  10

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.


[OCA 8 Book] [Blog]
Masoud Kalali
Author
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: http session object,ejb session bean
 
It's not a secret anymore!