aspose file tools*
The moose likes Servlets and the fly likes Thread Safe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Thread Safe

Glenny Dsilva
Ranch Hand

Joined: May 09, 2005
Posts: 42
My system connects two databases according to the parameter.

I am storing the database name in the session variable but i get data from the wrong database. I would like to know r session variables thread safe

if not.... how do i create a thread safe session attribute.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Isn't this a continuation of:
http://www.coderanch.com/t/360635/Servlets/java/Connection-Object
?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Glenny Dsilva
Ranch Hand

Joined: May 09, 2005
Posts: 42
yes
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Your conversation will be a lot easier to follow if you keep it to one thread.
Many people will refuse to participate if the conversation is cross posted or spread out among multiple threads in the same forum.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Please refrain from cross-posting and duplicate posting. Only have one thread in one forum for your discussion.

Closing this thread.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thread Safe