• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to handle user sessions using EJB?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am learning EJB and I want to build toy shopping cart appplication. I am stuck up at session management.
Can we use EJB for session management of users?
I want to develop simple website in which user enters his/her name, password and logs into the system.
After logging into the system, whatever action user performs like adding item into shopping cart or changing his own profile information etc. I want to log all those actions under the name of that particular user.

Can we do this using EJBs?

Till now I have developed an entity bean called User and one statuful bean called LogInBean. I am able to force user to login, logout with these two beans. But now problem is, how to check which action has been performed by which user?

In EJB container there might be multiple beans present at a time. So does EJB container handles all this mapping?
Does anyone knows some book or tutorial which explains all these things?

Many thanks,
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic