concurrency « Tomcat « JSP-Servlet Q&A





1. java.util.ConcurrentLinkedQueue    stackoverflow.com

I want to use java.util.ConcurrentLinkedQueue as a non-durable queue for a Servlet. Here's the blurb from the javadoc for the class.

An unbounded thread-safe queue based on linked nodes. A ConcurrentLinkedQueue ...

2. Servlet concurrency/synchronization in Tomcat?    stackoverflow.com

Is there a recommended way to synchronize Tomcat Servlet instances that happen to be competing for the same resource (like a file, or a database like MongoDB that isn't ACID)? I'm familiar ...