[undertow-dev] Who Needs JAX-RS...

Miere Teixeira miere.teixeira at gmail.com
Tue Sep 1 07:36:53 EDT 2015


Nice. I did know StringReadChannelListener already, but it is a lil'
verbose to use.
I just took look at StringReaderHandler, it seems quite simple and nice.

Anyway... thank you for the clarification. :]
Regards

On Tue, Sep 1, 2015 at 12:06 AM Stuart Douglas <sdouglas at redhat.com> wrote:

>
>
> ------------------------------
>
> *From: *"Miere Teixeira" <miere.teixeira at gmail.com>
> *To: *"Stuart Douglas" <sdouglas at redhat.com>, "Steve Logue" <
> bitvector2 at gmail.com>
> *Cc: *undertow-dev at lists.jboss.org
> *Sent: *Tuesday, 1 September, 2015 12:51:00 PM
> *Subject: *Re: [undertow-dev] Who Needs JAX-RS...
>
>
>
> Btw, Stuart,
> Quite interesting this new non-blocking API that was introduced in the
> 1.3.0 version.
>
>
> 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.
>
>
> Can you tell me where is a good place to be notified about the 1.3.0's
> roadmap and the upcoming new features?
>
>
> 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.
>
> Stuart
>
>
> On Mon, Aug 31, 2015 at 10:21 PM Stuart Douglas <sdouglas at redhat.com>
> wrote:
>
>> This is not really correct, as you are setting the exchange into blocking
>> mode and reading from an input stream.
>>
>> If you want to go full async there are a few things you need to remove
>> the 'startBlocking()' 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.
>>
>> Here is an example of a handler that uses StringReadChannelListener to
>> simply attach the post data to the exchange:
>>
>>
>> https://github.com/undertow-io/undertow.js/blob/master/src/main/java/io/undertow/js/StringReadHandler.java
>>
>> You can then get it in the next handler using the StringReadHandler.DATA
>> attachment key.
>>
>> Stuart
>>
>> ----- Original Message -----
>> > From: "Steve Logue" <bitvector2 at gmail.com>
>> > To: undertow-dev at lists.jboss.org
>> > Sent: Sunday, 30 August, 2015 12:00:49 PM
>> > Subject: [undertow-dev] Who Needs JAX-RS...
>> >
>> > Hi Folks, I'm definitely new to Undertow and super impressed with it.
>> However
>> > the docs are a bit thin in regards to using the RoutingHandler and doing
>> > full async processing. May I ask for a quick check of my approach to
>> using
>> > Undertow and trying not to block anywhere:
>> >
>> >
>> https://github.com/bitvector2/microservice2/blob/master/src/main/java/org/bitvector/microservice2/HttpActor.java
>> >
>> > -STEVEl
>> >
>> >
>> > --
>> >
>> > http://www.bitvector.org/
>> >
>> > _______________________________________________
>> > undertow-dev mailing list
>> > undertow-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/undertow-dev
>> _______________________________________________
>> undertow-dev mailing list
>> undertow-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/undertow-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20150901/88adf955/attachment.html 


More information about the undertow-dev mailing list