DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

You Monkeys!

04.10.2012
| 1987 views |
  • submit to reddit
        This code is dangerous! Do yourselves a favour and read the J2EE spec! You shouldn't be using static fields. What happens if this WebAppResourceLoader was used by a Servlet? What would happen if two threads were running through the servlet concurrently? The whole thing will fall over, thats what!