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 testingwhile in development or testing, allowing you for example to run a route without needing to actually connect to a specific SMTP or Http endpoint. Just add stub: in front of any endpoint URI and things just workto stub out the endpoint.

Under Internally 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 connect to a specific Smtp or Http endpoint, just put stub: in front and stub it out! (smile)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 usually fail. Stub won't though, as it basically ignores all query parameters to let you quickly stub out one or more endpoints in your route temporarily.

URI format

Code Block
stub:someUri

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

Examples

Here 's are a few samples:

Include Page
CAMEL:Endpoint See AlsoCAMEL:
Endpoint See Also