/rest-mft-osgi

RESTFul Managed File Transfer with Fuse

Primary LanguageJava

Managed File Transfer (MFT) with Fuse Example Project

The Camel routes used in this example are explained by the following diagram:

EIP Diagram

To run this example project build the project and deploy to ServiceMix
according to the steps below.

Setup

Build & Run

  1. Build this project so bundles are deployed into your local maven repo

$ mvn clean install

  1. Start JBoss Fuse

$ bin/fuse

  1. Add this projects features.xml config to Fuse from the Console (makes it easier to install bundles with all required dependencies)

JBossFuse:karaf@root> features:addUrl mvn:org.fusesource.examples/rest-mft-ws/4.0-SNAPSHOT/xml/features

  1. Install the project.

JBossFuse:karaf@root> features:install rest-mft-osgi

  1. To calculate a digital signature required for sending test files, there are existing routes in the rest-mft-file module.

$ cp /target/calculateSignature

To see what happened look at the log file, either from the console

JBossFuse:karaf@root> log:display

or from the command line

$ tail -f data/log/fuse.log

For your test file, you will see an LAU value printed. Copy this value as you'll need it later.

  1. To test the WS, use apache-jmeter with the JMX project included in rest-mft-ws/src/test/jmeter. Update the JMX project to reference your test files, using the LAU calculated for each test file in step 5.

Getting Help

If you hit any problems please let the Fuse team know on the forums [https://community.jboss.org/en/jbossfuse] or contact me directly.