Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript Scala
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
backend
features
interceptors
web
.gitignore
pom.xml
readme.md

readme.md

Introduction

The esbaudit project aims to provide a web-based tool for auditing exchanges inside ServiceMix. It leverages nosql data storage and uses Scalate for building the web ui.

Building

You can build esbaudit locally using Maven 3.0.x:

mvn clean install

Testing

After building the project locally, you can test it by installing the features in ServiceMix, adding the interceptor to your Camel routes and then running the web console itself.

Prerequisites

  • You should have MongoDB running locally.

Install the esbaudit feature

In the ServiceMix console, run these two command

features:addurl mvn:org.fusesource.esbaudit/features/1.0-SNAPSHOT/xml/features
features:install esbaudit

Add the interceptors to your Camel route

In the Blueprint XML file defining your CamelContext, add these elements:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">

    <camelContext xmlns="http://camel.apache.org/schema/blueprint">
        <route>
            <from uri="timer:test" />
            <to uri="log:test" />
        </route>
    </camelContext>

    <bean class="org.fusesource.esbaudit.interceptors.camel.AuditorStrategy">
      <argument>
        <bean class="org.fusesource.esbaudit.backend.MongoDB">
          <argument>
            <value>servicemix</value>
          </argument>
        </bean>
      </argument>
    </bean>

</blueprint>

Run the web console

In the web module, execute mvn jetty:run to start the web console. You can access the web console on http://localhost:8080

Something went wrong with that request. Please try again.