This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 4499
    
    8

Hi Joe. Welcome to The Ranch!

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class variable in servlet thread safety