Search

Appendix A. Quickstart Applications

download PDF

A.1. About Quickstart Applications

Each quickstart application demonstrates a specific piece of JBoss Fuse Service Works functionality to help you build services for your solution. All of the quickstart applications are included in the EAP_HOME/quickstarts directory of your installation.

Note

Instructions to run each quickstart application are documented in a README file located in the application directory.

A.2. Sample SwitchYard Quickstarts

The following list is a sample of the SwitchYard quickstarts available within the EAP_HOME/quickstarts/switchyard directory:
remote-invoker
The RemoteInvoker serves as a remote invocation client for SwitchYard services. It allows non-SwitchYard applications to invoke any service in SwitchYard which uses a <binding.sca> binding. It is also used by the internal clustering channel to facilitate intra-cluster communication between instances.
bean-service
Implements a service using a CDI bean and exposes it through a SOAP gateway.
bpm-service
Uses BPMN 2 to provide and utilize SwitchYard services.
camel-service
This is a basic routing example that uses XML and Java DSL Camel routes.
camel-jms-binding
Demonstrates how a Camel component can be used as a SwitchYard gateway.
demos/orders
Launches a web application which invokes a SwitchYard service from a JSF.

Note

You can find additional quickstarts by going to the quickstarts directory.

A.3. Using SwitchYard Quickstarts

Prerequisites

  • Maven 3.0.x must be installed.

    Note

    Run the following command to verify that Maven is installed successfully on your machine: mvn --version

Procedure A.1. Task

  1. Open a terminal.
  2. Navigate to a quickstart directory under EAP_HOME/quickstarts/switchyard where the project pom.xml file for the quickstart application is located. For example:
    EAP_HOME/quickstarts/switchyard/remote-invoker
  3. Run the following command:
    mvn clean install
Result

The quickstart compiles and is ready for use.

A.4. Running Quickstarts from JBoss Developer Studio

Overview

This topic demonstrates how to import a quickstart application to JBoss Developer Studio and then deploy it to a running application server.

Prerequisites

The JBoss Integration and SOA Development tools must be installed from the JBoss Developer Studio Integration Stack.

Procedure A.2. Task

  1. Open JBoss Developer Studio.
  2. Click File Import Maven Existing Maven Projects.
  3. Select Browse and navigate to the quickstart directory, for example, EAP_HOME/quickstarts/switchyard/bean-service and then select OK.
    The import tool will scan the directory to locate the associated pom.xml file.
  4. Select Finish.
  5. The quickstart is listed in the Project Explorer tab. You can expand the project to explore its contents.
  6. In the Project Explorer tab, right-click on the project's name and click Run as Run on server EAP.
Result

The quickstart application is deployed to the server and will be enabled by default.

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.