Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Deploy Joget Cluster into the Cloud

DZone's Guide to

How to Deploy Joget Cluster into the Cloud

· Cloud Zone
Free Resource

Are you joining the containers revolution? Start leveraging container management using Platform9's ultimate guide to Kubernetes deployment.

Joget Workflow is an open source platform that allows youto build enterprise web applications easily, due to its rich set of tools. It is also a rapid application development platform that provides complete agile development capabilities, including consisting of processes, forms, lists, CRUD and UI; not just back-end EAI/orchestration/integration or the task-based interface.

Due to the Joget plugin architecture, developers can easily extend the platform and integrate it with other systems.

With Joget Workflow you can:

  • build apps, not only processes
  • increase your efficiency and productivity
  • work with a user-friendly interface
  • reduce the cost of training (for your employees)

Let’s see how to get highly available Joget cluster in the cloud in a few minutes for further using.

Create the environment

1. Go to our site and sign up or log in with your Jelastic credentials.

2. Click Create environment to set up your environment in Jelastic.

3. Pick your application server (Tomcat 6 or 7), select the database you want to use (MySQL in our case). Then specify the number of cloudlets for each node and switch on HA to provide high reliability, scalability and perfect fail-over capabilities for your environment. After that type your environment name, for example, joget-cluster, and click Create.

joget-cluster-env

In a minute your highly available environment will be created.

Upload Java package

1. Navigate to joget.org and download the latest Joget Enterprise Edition (bundle for Linux).

joget-cluster-download

2. Extract the files from the package you have just downloaded.

3. Upload jw.war and jwdesigner.war (joget-enterprise-linux-x.x.x/apache-tomcat-x.x.x/webapps) to the Jelastic Deployment manager.

joget-upload

4. Deploy these packages to different contexts (e.g. jw and jwdesignerrespectively).

joget-deploy

Configure database

1. Open MySQL in a web browser and log in with the credentials Jelastic has sent you earlier.

2. Create a new database for your Joget cluster and name it jwdb.

joget-database

3. Navigate to query window and import jwdb-empty.sql file (joget-enterprise-linux-x.x.x/data) according to your needs. As you can see all the necessary tables were successfully created.

joget-cluster-database

Configure Joget

1. Go back to the Jelastic dashboard and click on the Config button for Tomcat.

joget-cluster-config

2. Navigate to the home/wflow and specify the database connection properties in the app_datasource-default.propertiesn file:

workflowDriver=com.mysql.jdbc.Driver
workflowUrl=jdbc\:mysql\:mysql-{your_environment_name}.{hoster's_domain}:3306/jwdb?characterEncoding\=UTF-8
workflowUser=root
profileName=
workflowPassword={your_database_password}
hibernate.dialect=org.hibernate.dialect.MySQLDialect

joget-database-configuration

3. Save the changes and restart your server.

Start Joget

Now your Joget cluster is ready for use. Open the jw context in a web browser and you’ll see the Joget welcome page. You can log in (the default credentials are admin/admin) and start to work with this great application.

joget-cluster

Jwdesigner context will be helpful for designing the app forms list.

jwdesigner

Now you can take all the advantages of using Joget highly available cluster in the cloud! Don’t worry about large scaling, load balancing or failover capabilities – Jelastic will do this instead of you. Enjoy!

Don’t have a Jelastic account? Get your free, instant account here.





Using Containers? Read our Kubernetes Comparison eBook to learn the positives and negatives of Kubernetes, Mesos, Docker Swarm and EC2 Container Services.

Topics:

Published at DZone with permission of Marina Sprava, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}