This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes storing session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "storing session" Watch "storing session" New topic

storing session

Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
Where is the best place to store user session.. in a Servlet or Stateful Session Bean.... and Why ???

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
David Follow
Ranch Hand

Joined: Oct 16, 2001
Posts: 223
There are a whole bunch of threats in this forum regarding your question, just use the search button...


Jose Jim�nez
Ranch Hand

Joined: Jun 15, 2005
Posts: 101
In this case, i will used stateful so the bussines logical can be access as web client as swing client . (Reused Code)

rottscha rotti

Joined: Jan 18, 2005
Posts: 21
Th ebest place would be in a servlet, because you use a StatefulsessionBean for more complex objects like a ShoppingBasket

Giri Alwar
Ranch Hand

Joined: May 27, 2005
Posts: 37
There are pros and cons to either approach. You will need to weigh them and select the one that makes sense to you. That is part of the assignment.

As a side note, I would like to request that folks don't provide answers to such specific questions. I know folks have in the past but it is important that we all help preserve the integrity of the assignment. It is ok to discuss generic concepts but please refrain from answering specifics on the exam.

SCEA<br />SCJD<br />SCJP
I agree. Here's the link:
subject: storing session