Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: how to run the clients

...

Or for the AOP enabled Server example:
mvn compile exec:java -PCamelServerAOP

Writing The Clients

This sample has three clients demonstrating different Camel techniques for communication

...

Switching to a different component is just a matter of using the correct endpoint. So if we had defined a TCP endpoint as: "mina:tcp://localhost:61616" then its just a matter of getting hold of this endpoint instead of the JMS and all the rest of the java code is exactly the same.

Run the Clients

The Clients is started using their main class respectively.

  • as a standard java main application - just start their main class
  • using maven jave:exec

In this sample we start the clients using maven:
mvn compile exec:java -PCamelClient
mvn compile exec:java -PCamelClientRemoting
mvn compile exec:java -PCamelClientEndpoint

Also see the Maven pom.xml file how the profiles for the clients is defined.

Using the Camel Maven Plugin

...