<div dir="ltr">Nice. I did know <span style="color:rgb(0,0,0);font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;line-height:24px">StringReadChannelListener already, but it is a lil&#39; verbose to use.</span><div><span style="color:rgb(0,0,0);font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;line-height:24px">I just took look at StringReaderHandler, it seems quite simple and nice.</span></div><div><span style="color:rgb(0,0,0);font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;line-height:24px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;line-height:24px">Anyway... thank you for the clarification. :]</span></div><div><span style="color:rgb(0,0,0);font-family:&#39;times new roman&#39;,&#39;new york&#39;,times,serif;font-size:16px;line-height:24px">Regards</span></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 1, 2015 at 12:06 AM Stuart Douglas &lt;<a href="mailto:sdouglas@redhat.com">sdouglas@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><br><div><br></div><hr><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>&quot;Miere Teixeira&quot; &lt;<a href="mailto:miere.teixeira@gmail.com" target="_blank">miere.teixeira@gmail.com</a>&gt;<br><b>To: </b>&quot;Stuart Douglas&quot; &lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt;, &quot;Steve Logue&quot; &lt;<a href="mailto:bitvector2@gmail.com" target="_blank">bitvector2@gmail.com</a>&gt;<br><b>Cc: </b><a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br><b>Sent: </b>Tuesday, 1 September, 2015 12:51:00 PM<br><b>Subject: </b>Re: [undertow-dev] Who Needs JAX-RS...</blockquote></div></div><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><br><div><br></div><div dir="ltr">Btw, Stuart,<div><span style="line-height:1.5;font-size:13.1999998092651px">Quite interesting this new non-blocking API that was introduced in the 1.3.0 version.</span></div></div></blockquote></div></div><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"></blockquote><div><br></div><div>It is still possible to do non blocking with the XNIO channel API in prior versions (which is what StringReadChannelListener uses), this new API is just easier to use. </div></div></div><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div><br></div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><div><br></div><div>Can you tell me where is a good place to be notified about the 1.3.0&#39;s roadmap and the upcoming new features?</div></div></blockquote><div><br></div></div></div><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div>1.3.0.Final will be released just before Wildfly 10 (which is currently planned for early October). In general 1.3.x beta releases are quite stable, most of the core functionality remains unchanged. </div></div></div><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div><br></div><div>Stuart</div></div></div><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div><br></div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 31, 2015 at 10:21 PM Stuart Douglas &lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is not really correct, as you are setting the exchange into blocking mode and reading from an input stream.<br><br>
If you want to go full async there are a few things you need to remove the &#39;startBlocking()&#39; call. To read the request entity the easiest way before Undertow 1.3 (which is still not quite final) is to use io.undertow.util.StringReadChannelListener. If you are a recent 1.3.0 beta you can use the new HttpServerExchange.getRequestReceiver() API.<br><br>
Here is an example of a handler that uses StringReadChannelListener to simply attach the post data to the exchange:<br><br><a href="https://github.com/undertow-io/undertow.js/blob/master/src/main/java/io/undertow/js/StringReadHandler.java" rel="noreferrer" target="_blank">https://github.com/undertow-io/undertow.js/blob/master/src/main/java/io/undertow/js/StringReadHandler.java</a><br><br>
You can then get it in the next handler using the StringReadHandler.DATA attachment key.<br><br>
Stuart<br><br>
----- Original Message -----<br>
&gt; From: &quot;Steve Logue&quot; &lt;<a href="mailto:bitvector2@gmail.com" target="_blank">bitvector2@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
&gt; Sent: Sunday, 30 August, 2015 12:00:49 PM<br>
&gt; Subject: [undertow-dev] Who Needs JAX-RS...<br>
&gt;<br>
&gt; Hi Folks, I&#39;m definitely new to Undertow and super impressed with it. However<br>
&gt; the docs are a bit thin in regards to using the RoutingHandler and doing<br>
&gt; full async processing. May I ask for a quick check of my approach to using<br>
&gt; Undertow and trying not to block anywhere:<br>
&gt;<br>
&gt; <a href="https://github.com/bitvector2/microservice2/blob/master/src/main/java/org/bitvector/microservice2/HttpActor.java" rel="noreferrer" target="_blank">https://github.com/bitvector2/microservice2/blob/master/src/main/java/org/bitvector/microservice2/HttpActor.java</a><br>
&gt;<br>
&gt; -STEVEl<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; <a href="http://www.bitvector.org/" rel="noreferrer" target="_blank">http://www.bitvector.org/</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; undertow-dev mailing list<br>
&gt; <a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br>
_______________________________________________<br>
undertow-dev mailing list<br><a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div></blockquote><br></div></div></blockquote></div>