Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install/run Spark Java Framework on AWS Elastic Beanstalk?

Normally, I build a Java web app using Tomcat or Glassfish into a WAR (web app archive file). This file can easily be deployed into AWS through Elastic Beanstalk with a few clicks. The integration is simple because Elastic Beanstalk allows us to deploy a web app on Tomcat/Glassfish/Java.

I recently started using a lightweight java framework called Spark, www.sparkjava.com . Is it possible to deploy this on Elastic Beanstalk in a few clicks? If not, is there an alternative to easily deploy a Spark Java web app onto AWS? Or, would I need to create an EC2 instance, copy the JAR app, and launch the JAR web app via command line?

like image 467
code Avatar asked Dec 17 '15 02:12

code


1 Answers

Sure you can, either by deploying it as a war via the Tomcat platform, or run it as a fat jar via the Java SE platform.

like image 164
k.liakos Avatar answered Nov 02 '22 11:11

k.liakos