Skip to content

couderhans/esbaudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •