Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The stub: component provides a simple way to stub out any physical endpoints for easy testing. Just add stub: in front of any endpoint URI and things just work.

Under the covers the Stub component creates VM endpoints.

So if you are in development and want to try a route out but don't want to while in development or testing, allowing you for example to run a route without needing to actually connect to a specific Smtp SMTP or Http endpoint, just put . Just add stub: in front and of any endpoint URI to stub it out! (smile)

URI format

Code Block

stub:someUri

Where someUri can be any URI at all with any query.

out the endpoint.

Internally the Stub component creates VM endpoints. The Note the main difference between Stub and VM is that VM will validate the URI and parameters you give it; , so putting vm: in front of a typical URI with query arguments will typically usually fail; . Stub wont won't though, as it will basically ignore ignores all the query parameters to let you quickly just stub out one or more endpoints in your route temporarily.

URI format

Code Block

stub:someUri

Where someUri can be any URI with any query parameters.

Examples

Here 's are a few samples:

Include Page
CAMEL:Endpoint See AlsoCAMEL:
Endpoint See Also