Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


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: 4397
    
    8

Hi Joe. Welcome to The Ranch!

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

 
GeeCON Prague 2014
 
subject: Class variable in servlet thread safety