Skip to content

mmulholl/sample.javaee7.servlet.nonblocking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Java EE 7 - Non-blocking I/O using Servlet 3.1

This application demonstrates how to use non-blocking I/O by using new APIs added to ServletInputStream and ServletOutputStream.

The example includes usage of ReadListener and WriteListener interface APIs.

Getting Started

Browse the code to see what it does, or build and run it yourself.

Running in Eclipse

  1. Download and install Eclipse with the WebSphere Developer Tools.
  2. Create a new Liberty Profile Server.
  3. Clone this repository.
  4. Import the sample into Eclipse using File -> Import -> Maven -> Existing Maven Projects option.
  5. Deploy the sample into Liberty server. Right click on the project and select Run As -> Run on Server option. Find and select the Liberty profile server and press Finish.
  6. Go to: http://localhost:9080/sample.javaee7.servlet.nonblocking/

Running with Maven

This project can be build with Apache Maven. The project uses [Liberty Maven Plug-in][] to automatically download and install Liberty profile runtime from the Liberty repository. Liberty Maven Plug-in is also used to create, configure, and run the application on the Liberty server.

Use the following steps to run the application with Maven:

  1. Execute full Maven build. This will cause Liberty Maven Plug-in to download and install Liberty profile server.

    $ mvn clean install
  2. To run the server with the Servlet Non-Blocking application execute:

    $ mvn liberty:run-server

Once the server is running, the application will be available under http://localhost:9080/sample.javaee7.servlet.nonblocking/.

Deploying to Bluemix

Click the button below to deploy your own copy of this application to Bluemix.

Deploy to Bluemix

Once the application is deployed and running in bluemix, it will be available under http://MYAPPNAME.mybluemix.net/sample.javaee7.servlet.nonblocking/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%