Deploying a runnable JAR

Log in to the AWS console, select the Elastic Beanstalk service under the Compute category, and click on the Get started button:

Fill in the application details in the next screen:

Upload the product.jar from the target folder and click on the Configure more options button. You will be presented with the different categories which you can configure by selecting Software, and under that, in the Environment properties, add a new environment variable called SERVER_PORT and set the value to 5000. This is necessary, because ...

Get Cloud-Native Applications in Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.