Helma Logo
main list history
previous version  overview  next version

Version 2 by hannes on 16. November 2006, 01:50

Jetty Continuations (suspend HTTP connections): http://docs.codehaus.org/display/JETTY/Continuations
This is not a "real" continuation as this isn't supported by Java. Instead, it relies on "that all actions taken by a filter or servlet before a call to suspend(long) are either idempotent (can be retried) or are made conditional on isPending() so they are not performed on retried requests".

Rhino Continuations (suspend script state):
Does not reflect current implementation, but this is the best I could find.

Rhino and Jetty continuations can be used alone or in combination to create various interesting tricks:

* Send back a page and continue on the same spot the next time the client sends a request
* Keep connection open and for use by other threads of control
* Keep connection open for use by same thread of control