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.
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.)