Hi Stuart,
I have a regular servlet (the sample... public class HelloWorldServlet extends HttpServlet) running inside the same web context (in the same war). In the HelloWorldServlet I can access the session object. I ran that first, but when I run the non-blocking servlet, my reqctx still returns null.
I'm running Wildfly 8.0.0 final, in case that matters.
So is everything hinging on:
public class ServletInitialHandler implements HttpHandler, ServletDispatcher {
...
public void handleRequest(final HttpServerExchange exchange) throws IOException, ServletException
...
exchange.putAttachment(ServletRequestContext.ATTACHMENT_KEY, servletRequestContext);
...