Home > zk-async-example

zk-async-example

Zk-async-example is a project mainly written in Java, based on the View license.

Example of asynchronous processing and server push with ZK

zk-async-example

Introduction

This is a sample project that shows one way of implementing asynchronous background processing with ZK server push.

Running the example

Do you want to test the asynchronous prototype instead? Switch to async branch (select async from "Current branch:" at top right section of this page)

1. Get the project

Either clone the repository git clone git://github.com/Gekkio/zk-async-example.git

or download a ZIP by using the ZIP button above and unzip that.

2. (Install Maven 3)

3. Start the application and open it in a browser

  • mvn jetty:run
  • Go to http://localhost:8080/.

Experimenting with thread starvation

You can test server push thread starvation by uncommenting the relevant section in pom.xml. This will force Jetty to use only 3 threads and you'll quickly see if any of those threads are blocked.

Previous:ul-action