Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This can be done in the usual Camel way from this test case (see the createRegistry() method); this example shows Java and JNDI being used...

...

Notice in the above route we are using pure local endpoints (*direct* and * seda). Also note we expose this CamelContext using the **accounts* ID. We can do the same thing in Spring via

...

Then in another CamelContext we can then refer to this "accounts black box" by just sending to *accounts:purchaseOrder* and consuming from *accounts:invoice*.

If you prefer to be more verbose and explicit you could use *context:accounts:purchaseOrder* or even *context:accounts:direct://purchaseOrder* if you prefer. But using logical endpoint URIs is preferred as it hides the implementation detail and provides a simple logical naming scheme.