This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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
Posts: 39054
714
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
 
Nothing? Or something? Like this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!