Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Anchortoptop

1. Quick start

If you are in a hurry to have Apache ServiceMix up and running right away, this article will provide you with some basic steps for downloading, building (when needed) and run running the server in no time. This is clearly not a complete guide so you may want to check the other links in the Apache ServiceMix v3.0 - User's Guide main section for further information.

...

Apache ServiceMix is a JBI (Jave Java Business Integration, JSR 208) implementation that is completely opensource open source and under the Apache License. ServiceMix v3.0 is the first official release of the JBI container by the Apache Software Foundation.

...

At this time you have one option to get the software. The fastest and easiest way is to get the binary directly from the Apache site. Since this article is intended to help you to have Apache ServiceMix up and running in the fastest way only the binary download will be covered at this time.

...

Prerequisites

Although this installation path is the fastest one, still you will need to install some software before installing ServiceMix.

J2SE 1.5

ServiceMix requires a Java 5 environment to run. Refer to http://java.sun.com for details on how to download and install J2SE 1.5.

Download binaries

Depending on the platform you plan to install and run Apache ServiceMix you will select the appropriate installation image. Open a Web browser and access the following URL, there you will find the available packages for download (binaries and source code).

http://incubator.apache.org/servicemix/download.html

Select the file compression format compatible with your system (zip, tar.gz) by clicking directly on the link, download it and expand the binary to your hard drive in a new directory; for example in z:\servicemix - from now on this directory will be referenced as <servicemix_home>. Please remember the restrictions concerning illegal characters in Java paths, e.g. !, % etc.

The installation of Apache ServiceMix is as simple as uncompressing the .zip or .tar files. The next step is to start the server.

#top

Start the server

With Apache ServiceMix already installed, open a command line console and change directory to <servicemix_home>. To start the server, run the following command in Windows

Code Block

bin\servicemix

respectively in Linux:

Code Block

bin/servicemix

Once the server is started, you should see the following informations on the command line console:

No Format
borderStylesolid

Starting Apache ServiceMix ESB: 3.0-incubating

Loading Apache ServiceMix from servicemix.xml on the CLASSPATH
INFO  - JBIContainer                   - ServiceMix 3.0-incubatingJBI Container (ServiceMix) is starting
INFO  - JBIContainer                   - For help or more informations please see: http://incubator.apache.org/servicemix/
INFO  - ComponentMBeanImpl             - Initializing component: #SubscriptionManager#
INFO  - DeploymentService              - Restoring service assemblies
INFO  - JBIContainer                   - ServiceMix JBI Container (ServiceMix) started

At this point, you have Apache ServiceMix up and running and the time spent has been minimal. The following section will propose to deploy one of the sample application.

In case you get a

No Format

Exception in thread "main" java.lang.IllegalArgumentException

...

#top

Start the server

...

Problems starting the Server

  • Port 1099 already in use: that means that another application or even another ServiceMix instance has already taken that port. Please make sure that no other ServiceMix instance is running or use netstat -a to figure out which other application is using that port. Keep in mind that some tests start an in-memory ServiceMix instance which also use this port. If all else fail then try to restart your computer. If the port has to be changed to avoid a conflict the edit <SERVICEMIX_HOME>/conf/servicemix.properties file and adjust the rmi.port.

#top

Deploy a sample application

While you will learn in the remaining remainder of this guide how to create and package a JBI application, we will just use a the pre-built packaging for now.Note: This requires .

...

1. In ServiceMix 3.2.1 and above this step is done automatically when starting ServiceMix.
2. This requires at least ServiceMix 3.0

...

Open another command line console in the <servicemix_home> directory and run the following commands in Windows

...

...

respectively Linux:

...

...

These commands will:

  • install the servicemix-shared Shared Library
  • install the servicemix-http and servicemix-jsr181 JBI components
  • deploy a JBI Service Assembly which exposes a service over HTTP/SOAP

...

ServiceMix deploy and install directories are relative to the directory where ServiceMix was started. Be sure to start it from the root dir using the bin/servicemix command. If you run it from the bin dir, the previous commands will fail and you would have to copy the components to the bin/install and bin/deploy folders.

...

You should see the following on the command line console:

...

...

Now deploy a JBI Service Assembly which exposes a service over HTTP/SOAP

...

In ServiceMix 3.2.1 and above the deploy directory has been replaced by hotdeploy. Modify the commands accordingly.

...

Windows:

...

Linux:

...

You should see the following on the command line console:

...

Now, open a web broser browser to the following location:

...

You should see the WSDL of the web service that have has just deployed!unmigrated-wiki-markup

Now, open a web browser and point it to the following location: {{\[servicemix_home\]/examples/wsdl-first/client.html}}. Then, click on the {{SEND}} button to see the web service response.

...

...

If your version of ServiceMix is older than 3.0.1, and you are using Internet Explorer, you will have to comment out the following line in the client.html web page.

...

...

This

...

has been be fixed in the 3.

...

1 release.

#top

Summary

This article showed you how simple it is to have Apache Servicemix ServiceMix up and running. The overall time for getting the server running should be less than five minutes if you have the prerequisite (Java 1.5) already installed. Additionally, this article also showed you how to deploy and test a simple Web Service in less than five minutes.

...