jsr340-experts@servlet-spec.java.net

[jsr340-experts] Fwd: Async IO proposals for Servlet 3.1

From: Greg Wilkins <gregw_at_intalio.com>
Date: Wed, 7 Mar 2012 13:34:39 +1100

---------- Forwarded message ----------
From: Jan Bartel <janb_at_intalio.com>
Date: 7 March 2012 12:54
Subject: Async IO proposals for Servlet 3.1
To: Greg Wilkins <gregw_at_intalio.com>


Greg,

please forward to the EG for their consideration.



If the intention of the proposed ReadListener and WriteListener
interfaces is that they are used only within an AsyncContext then it
makes a lot more sense if they are configured on the AsyncContext
itself. This will be much less confusing for users. Otherwise a lot of
explanation would be needed on the Request object stating exactly when
and how these addXListener (or more appropriately setXListener, as has
been pointed out by other EG members) methods should be used - what
might seem obvious to the EG might not be so obvious to non-expert
users.

As I think Remy suggested, perhaps the function of these
Read/WriteListeners could be subsumed into the already-existing
AsyncListener?

The draft spec document needs a worked example on how these new async
interfaces are intended to work.

Jan