• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Filter Mutli-threaded and Requiring Synchronization?

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A crosspost.

Similar thread found: http://www.coderanch.com/t/361170/Servlets/java/Filter-Mutli-threaded
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic