tree: e596484fa5f19b59f51fdff7f680e94dbe98c206 [path history] [tgz]
  2. pom.xml
  3. src/

Camel and RMI


This example shows how to work with the Camel-RMI Component.

The example exposes a RMI service over port 37541 running as a Camel application. The Camel application must be running.

The Client is standalone and run in a separate JVM. It invokes the RMI service and outputs the reply.


You will need to compile this example first:

mvn install

Run from cmd line outside OSGi container

To start the server

mvn camel:run

To run the client

mvn exec:java -PClient

To stop the example hit ctrl+c

Run inside OSGi container

If using Apache Karaf / Apache ServiceMix you can install this example from the shell

First the camel-rmi feature must be installed

features:chooseurl camel ${version}
features:install camel-rmi

Then install the example

osgi:install -s mvn:org.apache.camel/camel-example-osgi-rmi/${version}

Forum, Help, etc

If you hit an problems please let us know on the Camel Forums

Please help us make Apache Camel better - we appreciate any feedback you may have. Enjoy!