Red Hat JBoss Fuse

Subtitle
A lightweight and modular integration platform

Red Hat JBoss Fuse

Thank you for downloading

Your download should start automatically. If you have any problems with the download, please use the direct link.



Hello World!

Preamble

Prerequisites

Before you start, make sure you have installed the following software:

  • Java SE Development Kit (JDK) version 1.8.x (Java 8) - we recommend Oracle JDK or OpenJDK

  • Apache Maven

1. Install and configure the Karaf runtime

2 minutes

Body
  1. Download the JBoss Fuse Karaf runtime package.

  2. Unpack the downloaded .zip file to a convenient location on your file system, FuseInstall.

  3. Add a user to the Fuse runtime. Open the FuseInstall/etc/users.properties file in a text editor and look for the line starting with #admin=admin…​. Delete the # character at the start of the line and customize the username, USERNAME, and password, PASSWORD in the user entry:

    USERNAME=PASSWORD,admin,manager,viewer,Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser

    Save the users.properties file.

2. Set up your development environment

2 minutes

Body
  1. Download the Red Hat JBoss Developer Studio Integration Stack 10.0.0.GA Stand-Alone Installer.

  2. Run the installer

    1. For Mac / Windows Development Hosts:

      1. Go to the folder you have downloaded the installer and either:

        1. Right-click on the installer jar

        2. Select Open With→Jar Launcher

      2. Or double-click on the jar to start the installer (on Windows).

    2. For Linux Development Hosts:

      1. Go to the folder where you have downloaded the installer and execute it with

        java -jar devstudio-integration-stack-10.0.0.GA-standalone-installer.jar
  3. During installation:

    1. Accept the terms and conditions

    2. Choose your preferred installation path

    3. Select the Java 8 JVM

    4. At the Select Platforms and Servers step, configure the runtime server by clicking Add and browsing to the location of the FuseInstall directory (see Install and configure the JBoss Fuse Karaf runtime)

    5. Select JBoss Fuse Development as additional features

  4. Developer environment will start up. When the Searching for runtimesdialog appears, click OK to create the JBoss Fuse runtime.

  5. Accept any additional dependencies and license agreements.

3. Build your first application

5 minutes

Body

With your tooling and runtime installed, you’re ready to start your first project. We’ll get you started with a Camel Content Based Router (CBR) pattern.

The CBR quickstart watches a directory for incoming orders and dispatches them to outgoing directories based on the customer country contained in the order XML. We will import the quick start into your workspace and then build it from scratch so you see how it works.

Create a New Project

First, we need to create a new Fuse Project:

  1. Select File→New→Fuse Integration Project.

  2. Call it fuse-camel-cbr. Click Next.

  3. Select your Fuse 6.3 server as the Target Runtime. Click Next.

  4. Select Use a predefined template.

  5. Select the JBoss Fuse→Beginner→Content Based Routertemplate.

  6. Ensure that Blueprint DSL is selected.

  7. Click Finish.

Deploy the Project to the Server

  1. In the Servers view, if your server isn’t already started - select your runtime server and click the green arrow to start it.

  2. Right-click on the server after it is started and select Add and Removefrom the context menu.

  3. In the Add and Remove dialog, select your fuse-camel-cbr project and click the Add > button.

  4. Click Finish.

  5. You can check that everything is ok by issuing the command in the Shelltab: osgi:list

  6. Your bundle should be present at the end of the list - for example, something like:

    [ 302] [Active         ] [Created         ] [           ] [   80] Fuse CBR Quickstart (1.0.0.SNAPSHOT)

Test the Project

As soon as the Camel route has been started, it will create a directory, work/cbr/input, in your JBoss Fuse installation.

Now you can test your Camel route and see it in action.

Copy the files you find in this quickstart’s src/main/fabric8/data directory to the newly created work/cbr/input directory. You can do this in your system file browser (outside of Eclipse) or the Remote Systems view (inside Eclipse - Window→Show View→Other, and then Remote Systems→Remote Systems). You can click and drag files from the Project Explorer into a directory in the Remote Systems view to trigger the Camel route processing.

Wait a few moments and you will find the same files organized by country under the work/cbr/output directory:

  • order1.xml in work/cbr/output/others

  • order2.xml and order4.xml in work/cbr/output/uk

  • order3.xml and order5.xml in work/cbr/output/us

Note that if you use the Remote Systems view, you may need to manually refresh the runtime directory to see folders and files as they are added and removed. Select the directory to refresh in the tree and hit F5 or select the *Refresh¨ button on the view toolbar.

Use log:display in the Fuse shell to check out the business logging.

You can also use the JMX Navigator to see your deployed Camel project and interact with the exposed Camel endpoints that way. See the documentation for details.

Undeploy the Project

To stop and undeploy the bundle in the Fuse server:

  1. In the Servers view, select your running runtime server.

  2. Right-click on the server and select Add and Remove from the context menu.

  3. In the Add and Remove dialog, select your fuse-camel-cbr project and click the Remove > button.

  4. Click Finish.

  5. You can check that everything is ok by issuing the command in the Fuse console: osgi:list

  6. Your bundle should no longer be present at the end of the list.

Next Steps

You now know how to:

  • Create one of the available Fuse project templates in your workspace.

  • Deploy a project into a running Fuse server.

  • Test a simple project.

  • Undeploy the project from the server.

Where do you go from here?

Demonstration Description Material

What is JBoss Fuse?

Demo sourceVideo

Tooling

Tooling Usability ImprovementsDebugger SupportTransformation ToolingInstalling SAP ToolingUsing SAP Tooling

What is Apache Camel? What are Enterprise Integration Patterns (EIP)?

Video about connectorsVideo about EIPSDemo source

Managing JBoss Fuse with Fuse Fabric

Video

Step by step build the Home Loan Application with Microservices Architecture

Video 1 Service with Simple EIPVideo 2 Persisting to Database

Business requirements change. Extend the home loan application. New SaaS applications? No problem..

Video 3 Integrating with SaaSVideo 4 Composing services

Business expanding. Extend the home loan application to partners, suppliers.

Video 5 Exposing Restful Web service

Innovate further. Try, experiment, test, deploy.

Video 6 Testing and DebuggingVideo 7 Deploy and manage in Fabric

Alternate running environment (or container)

Video 7 Running integration on Jboss EAP

Build Something Today

Let's walk through everything you need to build your first application.

Download Get Started
×