Does JAX-RS/Jersey 2.x utilize servlet 3.0 async capability? or it is just another async layer on top of old-fashioned thread/request based servlet architecture.
Asked
Active
Viewed 1,206 times
2 Answers
0
From what I have understand, async in Jersey will come in version 2.0 (mostly the implementation of JAX-RS 2.0). Look at the current status on the project:
Currently we are working full speed on Jersey 2.0 which will implement JAX-RS 2.0. Milestone builds are available from maven central repository. You can see the latest snapshot of Jersey 2.0 API documentation here. More information can be found on Jersey 2.0 Status page.
Looking at the documentation, you may find AsyncResponse, which is a good start, I guess.

yves amsellem
- 7,106
- 5
- 44
- 68
0
Jersey supports various containers. When running on Servlet 3.x it utilizes the async servlet capability to implement the async API. When running on Grizzly, it utilizes the Grizzly NIO API.

Martin Matula
- 7,969
- 1
- 31
- 35