Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

servlet and stateful session bean maintain user session(C app calls Java servlet more than once)  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One C app(same user multiple times)is calling a servlet,this sevlet will call stateful session bean (EJB3).
need to save the results from the DB operatins in session.
How can I maintain each user session in this scenario.
same user may send more than one requests while finalizing the transaction needs to fetch all these details from the session ,save to DB.
send a response to C app too.

How can I track the each user session from the C app.

please help me with sample code

Thanks in advance
 
author & internet detective
Sheriff
Posts: 38564
654
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nis,
Welcome to JavaRanch!

This sounds like a design problem. When you say you have a C app that calls a servlet, I assume you mean a URL that calls a servlet? The only way for that servlet to remember who you are is to pass credentials with the URL request. Such as a cookie or user id. (watch out for security with both of these - especially the later.)
 
nis siv
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne,


Is it possible to track the usersession by using stateful session beans ?



Thanks,

nis
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!