< Previous | Front page | Next >
Skip to end of metadata
Go to start of metadata

First Steps with SwitchYard

The sole objective of this guide is to help new users get up and running with SwitchYard as quickly as possible.  The manner in which we will achieve this objective is ruthless efficiency.  If you have questions that begin with "why" or "how", check out the other docs in the set.  If you have no time for any of that nonsense, then read on.

Prerequisites

If you want to get down with SwitchYard, you'll need some Maven and Java to get the job done.

  • Java 6 or Java 7
  • Maven 3

Install SwitchYard

Go to the SwitchYard Downloads page and download "switchyard-as7-[version].zip" under Current Release.  Once downloaded, extract the zip to a location of your choice (/tmp recommended for those that fear commitment), e.g.

Start the Server

In the bin/ directory of your distribution, you'll find a script called standalone.sh (*nix) and another called standalone.bat (Windows).  Execute the appropriate script for your platform.

The server will start in anywhere from 1 - 3 seconds depending on the age and price of your computing device.   You know SwitchYard is ready to rock once you see this:

Deploy an Application

There are many applications to chose from in the quickstarts/ directory of your distribution.  A nice one to start with is the remote-invoker application.  There are a number of ways to deploy an application to the SwitchYard runtime, but we'll go with Maven as it's righteous.  You will need a separate terminal or command window from the one where you started the server.

You will see output similar to the following after a successful deployment.

Invoke the Application

You can send a message to the deployed remote-invoker application using Maven as well.

After running the command, you'll see this in the command output:

You will see some output in the server console as well:

Success

If you've made it this far, you're OK in my book.  Each quickstart has a Readme.md file which provides step-by-step instructions for deploying and testing.  Give some of the other apps a try and see what this crazy project can do.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.