An example asynchronous REST API written in Java using Jersey 3 (🤷🏼♂️) and Akka
- Instantiating an Akka ActorSystem at server startup and injecting it into each request
- Fulfilling an asynchronous Jersey REST service invocation using Akka actors
- Clone this repository
- Run
mvn cargo:run
- Visit
http://localhost:9090/examples/doubler/2
via curl or your favorite browser
The application uses the Cargo Maven plugin to run Apache Tomcat 10.1.43, which provides full support for Jakarta EE and modern Java versions.
Note: The legacy mvn tomcat7:run
command is still available but uses the older Tomcat 7.0.47 which has compatibility issues with modern Jakarta EE libraries and may not work correctly.
- JDK 17.x
- Maven 3.x