I have a servlet Filter that acts as the basis of my web stack. In my web.xml I have specified that I want the filter to also act as a FORWARD dispatcher.
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
This is required for another feature in my framework.
Now I am trying to add support for asynchronous continuations. The problem I've come across is
that when the continuation is resumed (or when the continuation expires) jetty is never dispatching the "resumed" request to my filter. If I write a servlet, then it will get the "resumed" request.
And if I remove the <dispatcher>FORWARD</dispatcher>
from my web.xml file then the filter does get the "resumed" request. Is there anyway that I can have the "resumed" request dispatched to my filter even with FORWARD
dispatching enabled?
After playing around a bit more, the problem arises whenever I have any <dispatcher>
entries. Even if there is only a <dispatcher>REQUEST</dispatcher>
entry. In order for it to work, there must be no dispatcher
entries at all.