Filter's doFilter() method is getting invoked before servlet's init()
Issue
In JBoss Web (EAP 6), the code is executed in the following order at the first request.
- Filter.init()
- Servet.init()
- Filter.doFilter()
- Servlet.service()
While on Undertow (EAP 7) the order is as follows.
- Filter.init()
- Filter.doFilter()
- Servet.init()
- Servlet.service()
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.0.0
- 7.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.