over 2 years ago
As the Hackathon is moving into full swing - I thought you might like some help in determining which Red Hat Middleware project to use.
This note is for people who may be new to Java development or just looking for something simple to use for a mobile backend.
As a reminder, a GitHub repo has been created with instructions on how to add the Red Hat Middleware projects to your OpenShift Online account for use in your application:
*Please be sure to read the entire README.md in the GitHub repository before you try to use one of these products listed below.*
In most of these repos, you will find a template that loads both the app server AND a database. When you use these templates, you will spin up the database AND the appserver, with the appserver already having all the connection information it needs to talk to your database. There will be a predefined DB name in the web ui, please be sure to change that if you want a different DB name than what we put in there.
1. Let's start with probably the most well know application server in Java Space:
This is the tried and true Java Application Server. This will probably the easiest for people getting started and want to make a simple JSP page or Servlet to do their work. There is a ton of documentation around the web on how to use it.
This blog should help you get started (some of the screenshots are out of date but the flow is the same)
2. If you are interested HA clustering, built in Message Queues, or the sweetness of the new and improved Java EE, then look at:
JBoss EAP (Based on Wildfly)
This is the flagship application server intended for more high availability (ha) scenarios or if you want to bring the full power of modern Java EE to your Application.
You can use this in place of Tomcat for normal Java Applications (I do all the time), but it has a bit more of a learning curve.
Here is a great blog post, with a video, to help you get started with EAP on OpenShift
3. If you want to work with Vert.x, Wildfly Swarm (Microprofile), or Spring Boot then you will be interested in:
This template allows you to build a Java Project that embeds it's own app server in to what is called a Fat Jar (basically a runnable archive file with the appserver and code in it). The most popular framework out there for this would be Spring Boot but I would also highly recommend Vert.x (think of it as a Super Duper WAY Better Node.JS, it does Java, JS, JRuby, and Kotlin).
Here is the documentation
and a blog post
to get you started
4. If you want to enable single sign on for your application or to add multiple OAuth providers for your project, take a look at:
Red Hat SSO (based on Keycloak)
SSO is a component that can run stand alone in OpenShift and handle authentication across all the pieces of your application.
You can manage users as well as permissions for your application. Another nice feature is the ability to configure to accept authentication from external popular OAuth providers such as GitHub, Twitter, Google, etc.
Here is some helpful documentation to talk about SSO
As always we appreciate any and all feedback.