GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - suneelval/serverless-java-container: A Java wrapper to run Spring, Spring Boot, Jersey, and other apps inside AWS Lambda.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,158 Commits
1,158 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
aws-serverless-java-container-core
aws-serverless-java-container-core
 
 
aws-serverless-java-container-jersey
aws-serverless-java-container-jersey
 
 
aws-serverless-java-container-spring
aws-serverless-java-container-spring
 
 
aws-serverless-java-container-springboot3
aws-serverless-java-container-springboot3
 
 
aws-serverless-java-container-struts
aws-serverless-java-container-struts
 
 
aws-serverless-jersey-archetype
aws-serverless-jersey-archetype
 
 
aws-serverless-spring-archetype
aws-serverless-spring-archetype
 
 
aws-serverless-springboot3-archetype
aws-serverless-springboot3-archetype
 
 
aws-serverless-struts-archetype
aws-serverless-struts-archetype
 
 
samples
samples
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
gha_build.sh
gha_build.sh
 
 
owasp-suppression.xml
owasp-suppression.xml
 
 
pom.xml
pom.xml
 
 
spotbugs-excludeFilter.xml
spotbugs-excludeFilter.xml
 
 

Repository files navigation

Serverless Java container Build Status Maven Central Help

The aws-serverless-java-container makes it easy to run Java applications written with frameworks such as Spring, Spring Boot, Apache Struts, Jersey, or Spark in AWS Lambda.

Serverless Java Container natively supports API Gateway's proxy integration models for requests and responses, you can create and inject custom models for methods that use custom mappings.

Currently the following versions are maintained:

Version Branch Java Enterprise support Spring versions JAX-RS/ Jersey version Struts support Spark support
1.x (stable) 1.x Java EE (javax.*) 5.x (Boot 2.x) 2.x ✅ ✅
2.x (under development) main Jakarta EE (jakarta.*) 6.x (Boot 3.x) 3.x ❌ ❌

Follow the quick start guides in our wiki to integrate Serverless Java Container with your project:

  • Spring quick start
  • Spring Boot 2 quick start
  • Spring Boot 3 quick start
  • Apache Struts quick start
  • Jersey quick start
  • Spark quick start

Below is the most basic AWS Lambda handler example that launches a Spring application. You can also take a look at the samples in this repository, our main wiki page includes a step-by-step guide on how to deploy the various sample applications using Maven and SAM.

public class StreamLambdaHandler implements RequestStreamHandler {
    private static final SpringLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> handler;

    static {
        try {
            handler = SpringLambdaContainerHandler.getAwsProxyHandler(PetStoreSpringAppConfig.class);
        } catch (ContainerInitializationException e) {
            // if we fail here. We re-throw the exception to force another cold start
            e.printStackTrace();
            throw new RuntimeException("Could not initialize Spring framework", e);
        }
    }

    @Override
    public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context)
            throws IOException {
        handler.proxyStream(inputStream, outputStream, context);
    }
}

Public Examples

Blogs

  • Re-platforming Java applications using the updated AWS Serverless Java Container

Workshops

  • Java on AWS Lambda From Serverful to Serverless Java with AWS Lambda in 2 hours

Videos

  • Spring on AWS Lambda YouTube Playlist from @plantpowerjames

Java samples with different frameworks

  • Dagger, Micronaut, Quarkus, Spring Boot

About

A Java wrapper to run Spring, Spring Boot, Jersey, and other apps inside AWS Lambda.

aws.amazon.com/serverless/

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.