简体   繁体   中英

Does JAX-RS/Jersey 2.x utilize servlet 3.0 async capability?

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM