aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Is Filter Mutli-threaded and Requiring Synchronization? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Is Filter Mutli-threaded and Requiring Synchronization?" Watch "Is Filter Mutli-threaded and Requiring Synchronization?" New topic
Author

Is Filter Mutli-threaded and Requiring Synchronization?

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
According to Servlet 2.4 Spec6.2.1, only one instance per <filter> in DD is created. But if there are 2 concurrent requests made to 2 servlets sharing the same <filter> definition, would the filter executed in multiple threads (just like servlet)? I cannot find related information in the specification. Could anyone point me to the appropriate location for more information.

Thx
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
A crosspost.

Similar thread found: http://www.coderanch.com/t/361170/Servlets/java/Filter-Mutli-threaded
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Filter Mutli-threaded and Requiring Synchronization?
 
Similar Threads
Access DispatcherServlet in a GenericFilterBean
HFSJ Page 696 decalring filters in DD
Servlet Filter chain construction order
what happens when Filter and Servlet mapped to same url-pattern
Filter Mappings - URL Pattern