Enterprise UX
Join our upcoming webinar about enterprise UX! September 28, 2022.
Blog

Jelastic and Vaadin

By  
Henrik Paul
·
On Jun 1, 2012 11:54:00 AM
·

Jelastic is a Java host cloud platform. Early generation Java cloud computing platforms required developers to manage virtual machines or purpose-build applications to work in the cloud. Jelastic is different, it runs any Java app, scales vertically, doesn't keep your code locked in, has a free trial and it's affordable.

It's pretty easy to get started with Jelastic, just follow these steps:

Create an environment

1. Go to Jelastic.com and sign up if you haven’t done it yet or log in with your Jelastic credentials by clicking the Sign In link on the page.

2. While in Jelastic dashboard, click the Create environment button:

create-environment

3. In the Environment Topology dialog, pick your application server (for example, Tomcat 6). Turn on HA (Hight Avaliability) to provide clustering and sticky sessions. Vaadin requires sticky sessions to work properly in a cluster environment. NGINX load balancer is automatically activated after turning on HA. Then type your environment name, for example, vaadintest.

application-server

Notice: HA feature is available only for paid Jelastic’s users.

It will take just a minute for your environment to be created.

environment-created

Upload Java package

1. Download the latest version of Vaadin as a jar file.

download-vaadin

download-latest

2. Go back to Jelastic dashboard, click config button for Tomcat and upload vaadin.jar to the lib folder.

upload-jar

3. Restart Tomcat.

restart-tomcat-1

4. Upload your .war package to the Deployment manager (we use Vaadin sampler demo application as an example).

upload-war

5. Once the package is in Jelastic, deploy it to the environment you have just created.

deploy

Start your Vaadin application

Now you can open your app in a web browser and enjoy.

finished-app

app-in-browser

 

Henrik Paul
Henrik Paul works as a Scrum Master at Vaadin's product development. He has been working at Vaadin since 2008 with basically anything and everything, except in sales or administration. He's one of those annoying guys who is never satisfied with the status quo, and questions established practices constantly.
Other posts by Henrik Paul