In this self paced tutorial you will learn how to get started in Red Hat Fuse. This introductory service will automatically start a timer and prints out random numbers every two seconds.
Before you get started
- Download Red Hat CodeReady Studio from the Red Hat Developer program in order to access Fuse Tooling.
- Make sure you have completed the first and second steps of the article Hello World for Fuse Tooling via CodeReady Studio.
What is Fuse
Red Hat Fuse enables developers to take an Agile Integration approach when developing solutions. By building and composing microservices, Fuse allows distributed systems deployments and a focus on scaling of services and people.
Having this hybrid capability is important as demand grows for scalable cloud native microservice APIs. To simplify the development Fuse components offer a choice of three runtimes:
- As a standalone Java application (SpringBoot)
- As a service in Apache Karaf (OSGi)
- As a service in JBoss Enterprise Application Platform (JavaEE)
Now you are probably interested in expanding your work with Red Hat Fuse in a less structured environment. If you haven't already or if you have maybe expanding on what you have learned to build your own Red Hat Fuse applications. For hints and ideas of where to start next check out the resources below.
Getting Started with Fuse
If you are ready for the next step take a look at this detailed guide "Getting Started with Fuse on OpenShift". This thorough guide covers the basics from setting up the JBoss Developer suite of tools, the OpenShift CDK, and creating your first Camel project as well as more advanced topics like securing and using OpenShift to configure your applications. Getting Started with Fuse on OpenShift covers all the basics.
Running on different runtimes
Running on cloud looks great, but what if I want to run everything on a machine. Fuse allows you to run it on Karaf (OSGi) and JBoss Enterprise Application Platform (Java EE).
Topic 1 - Creating an Initial Project
Before we get started, please make sure that you have completed all steps of the Red Hat Fuse Hello World guide. All set? Let’s get your OpenShift environment up and running ..
To login to the OpenShift use the following command in the Terminal frame:
oc login -u developer -p developer
This will log you in using the credentials:
You should see the output:
Login successful. Now we need to create a Project space in OpenShift for our API. In OpenShift we can create a new project by running oc new-project <projectname>
For our project lets create a project called
fuselab by running the command:
oc new-project fuselab
You should see output similar to:
Now using project "fuselab" on server "https://172.17.0.41:8443". You can add applications to this project with the 'new-app' command. For example, try: oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git to build a new example application in Ruby.
Now switch to the Dashboard frame (Click on the tab next to the Terminal tab) and login to the OpenShift web console using the same credentials you used above.
This should take you to the list of projects you have access to. As we only
created the one project, all you should see is
fuselab to be taken to the Overview page for
At this point, your project is empty. Click Continue to see how to deploy your first application.