Skip to content

Commit 9f4c378

Browse files
author
Maarten Kroon
committed
Removed Webservlet annotation from DebugSSEServlet and DebugServlet and added <async-supported>true</async-supported> to these servlet definitions in web.xml
1 parent 4076126 commit 9f4c378

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/nl/armatiek/xslweb/saxon/debug/DebugSSEServlet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
import java.io.IOException;
2020

2121
import javax.servlet.ServletException;
22-
import javax.servlet.annotation.WebServlet;
2322
import javax.servlet.http.HttpServlet;
2423
import javax.servlet.http.HttpServletRequest;
2524
import javax.servlet.http.HttpServletResponse;
2625

2726
import info.macias.sse.servlet3.ServletEventTarget;
2827
import nl.armatiek.xslweb.configuration.Context;
2928

30-
@WebServlet(asyncSupported = true)
29+
// @WebServlet(asyncSupported = true)
3130
public class DebugSSEServlet extends HttpServlet {
3231

3332
private static final long serialVersionUID = 1L;

src/main/java/nl/armatiek/xslweb/saxon/debug/DebugServlet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import java.util.Comparator;
2626

2727
import javax.servlet.ServletException;
28-
import javax.servlet.annotation.WebServlet;
2928
import javax.servlet.http.HttpServlet;
3029
import javax.servlet.http.HttpServletRequest;
3130
import javax.servlet.http.HttpServletResponse;
@@ -38,7 +37,7 @@
3837

3938
import nl.armatiek.xslweb.configuration.Context;
4039

41-
@WebServlet(asyncSupported = true)
40+
// @WebServlet(asyncSupported = true)
4241
public class DebugServlet extends HttpServlet {
4342

4443
private static final long serialVersionUID = 1L;

src/main/webapp/WEB-INF/web.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
<servlet>
9090
<servlet-name>DebugServlet</servlet-name>
9191
<servlet-class>nl.armatiek.xslweb.saxon.debug.DebugServlet</servlet-class>
92+
<async-supported>true</async-supported>
9293
</servlet>
9394
<servlet-mapping>
9495
<servlet-name>DebugServlet</servlet-name>

0 commit comments

Comments
 (0)