my dog learned polymorphism*
The moose likes Servlets and the fly likes Class variable in servlet thread safety Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Class variable in servlet thread safety" Watch "Class variable in servlet thread safety" New topic
Author

Class variable in servlet thread safety

Joe Jackson
Greenhorn

Joined: Apr 12, 2011
Posts: 1
Hi All,

Can we declare a class variable to store Spring bean in a servlet class without compromising thread safety?



I will greatly appreciate any help or comments.
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4343
    
    8

Hi Joe. Welcome to The Ranch!

Your post is easier to read if you UseCodeTags. I've added them for you this time.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Class variable in servlet thread safety
 
Similar Threads
thread safety ?
hibernate in servlet - threadsafe
Is this thread safe? Simple question.
Thread Related
SingleThreadModel question