-
1. Re: Asynchronous Servlet: dispatching to jsp causes endless loop
jfclere Jan 18, 2013 2:34 AM (in response to ceiching)I think if you read the http://docs.oracle.com/javaee/6/api/javax/servlet/AsyncContext.html#dispatch%28java.lang.String%29 you will see you need to start your AsyncProcessor() on one event (probably onStartAsync()).
What are you trying to do?
-
2. Re: Asynchronous Servlet: dispatching to jsp causes endless loop
ceiching Jan 18, 2013 3:24 AM (in response to jfclere)Hi Jean-Frederic,
I'm currently testing the Servlet 3.0 implementation of the different app servers and thus tried to set up a sample test case which:
(1) starts a worker using AsyncContext.start(AsyncProcessor)
(2) stats another worker with AsyncContext.start(AsyncProcessor1)
(3) dispatching to a jsp for rendering the result with AsyncContext.dispatch(path to jsp)
i.e. I do only one dispatch on the AsyncContext as specified in the JavaDoc. If I change the example to render the result directly in worker1 completing with AsyncContext.complete(), the processing is done correctly. However, as soon as the dispatch to the JSP is added, the loop occurs.
So far the sample worked fine with GlassFish 310, WebSphere 8.5, WebLogic 12.1.1. and Tomcat 7.0.33.
THX for your time, Christian
-
3. Re: Asynchronous Servlet: dispatching to jsp causes endless loop
jfclere Jan 21, 2013 11:49 AM (in response to ceiching)it might be a bug then :-(
-
4. Re: Asynchronous Servlet: dispatching to jsp causes endless loop
ceiching Jan 22, 2013 2:14 AM (in response to jfclere)Ok, thank you. I filed an issue (JBWEB-260).
-
5. Re: Asynchronous Servlet: dispatching to jsp causes endless loop
ceiching Jul 26, 2013 1:59 AM (in response to ceiching)JBWEB-260 is fixed. Checked briefly with Wildfly 8 Alpha 3 (uses jbossweb-8.0.0.Alpha1) - works fine.