Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Creating the WAR from the source

The servicemix-web project is available in the 3.0 distribution

Code Block

cd examples/servicemix-web

or get Get the latest checkout then perform the following command

Code Block
cd tooling/servicemix-web
maven run

Then, launch the jetty embedded server with

Code Block

mvn org.mortbay.jetty:maven-jetty-plugin:run

and Then point your browser to http://localhost:8080/Image Removed to see the management console. There are also one or two examples described below.

An alternative to the above is to use your existing Servlet engine and create the WAR yourself then deploy it into your servlet engine. e.g. type this

Code Block
mavenmvn warpackage

Then deploy the war into your servlet engine. You'll typically need to use a different URL then such as http://localhost:8080/servicemix-web/Image Removed

Examples

The ServiceMix WAR comes with an example of using a HTTP GET or POST to invoke a JBI operation. Follow the instructions above to deploy the WAR then point your browser to http://localhost:8080/examples/Image Removed or http://localhost:8080/servicemix-web/examples/Image Removed if you are deploying the WAR in a servlet engine.

You should see the simple demo which performs a HTTP GET/POST into the JBI container and shows the result in your browser. This example renders better in FireFox which handles XML response types nicer than Safari.

Note: If you are building ServiceMix 3.2 you will find the war file under <your build dir>\servicemix\distributions\apache-servicemix-web\target