Skip to content

pofallon/jersey2-akka-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jersey2-akka-java

An example asynchronous REST API written in Java using Jersey 3 (🤷🏼‍♂️) and Akka

CI Dependabot enabled

Key concepts

  • Instantiating an Akka ActorSystem at server startup and injecting it into each request
  • Fulfilling an asynchronous Jersey REST service invocation using Akka actors

How to run the example

  1. Clone this repository
  2. Run mvn cargo:run
  3. 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.

Prerequisites

  • JDK 17.x
  • Maven 3.x

About

An example async Java REST API using Jersey 2 and Akka

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages