Jorge,
As you say you can use either.  One loads the web server, the other loads
the application server.
I would look at the relative loads (eg. memory usage in this case).  Also in
the past there seemed to
be size limitations on the HttpSession object on some servers .. though I
was never able to confirm that.

Cheers,
Jon

Jon Ferguson  PhD. MSc. CEng.
Senior Software Engineer
Phone: (972) 726-4466
Fax: (972) 726-4692
E-mail: <mailto:E-mail:[EMAIL PROTECTED]> [EMAIL PROTECTED]

__________________________________

ObjectSpace, Inc.
Leader in Business-to-Business Solutions
http://www.objectspace.com



-----Original Message-----
From: Jorge Salas-Ortiz [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 31, 2000 1:33 PM
To: [EMAIL PROTECTED]
Subject: Using HttpSession instead of a Stateful Session Bean


Hello all,

Have a question about using an HttpSession object
*instead* of a Stateful Session Bean.  Is it
adviceable?  If not, why?

I need a mechanism to store user-specific data across
multiple http requests (via JSP/servlets).  I was
using the HttpSession object to store a Handle to the
EJBObject (my Stateful Session object) then access
data from the bean, but I can just as easily put that
data in the HttpSession itself.  Plus, I don't have to
worry about getAttribute and putAttribute like calls
in the bean api and making those calls Remote
compliant (i.e. Serializable, Remote)

Any opinions or suggestions would be appreciated,
thanks..
jorge

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to