This is a sample project that shows one way of implementing asynchronous background processing with ZK server push.
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)
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.
mvn jetty:run
- Go to http://localhost:8080/.
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.