Name: sample.async.servletnio
Owner: WASdev
Description: This is a collection of samples that illustrate the Non-blocking IO capabilities of Servlet 3.1 in Java EE7 that can be used to make your applications more responsive. #JavaEE7
Created: 2015-06-25 14:42:24.0
Updated: 2017-07-30 03:28:28.0
Pushed: 2017-10-24 19:55:50.0
Size: 125
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Java EE7 added support for Non-blocking Servlet IO (NIO) in Servlet 3.1, which enables reading and writing data without blocking a thread, which can be very useful when faced with slow clients. The new function builds upon support for asynchronous processing that was introduced in Servlet 3.0, and will only work with async-enabled apps.
This sample contains a few variations to illustrate how Non-blocking IO in Servlet 3.1 works:
Browse the code to see what it does, or build and run it yourself:
Once the server has been started, go to http://localhost:9083/servlet-nio/ to interact with the sample.
© Copyright IBM Corporation 2015, 2017.
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.