Hi all,

I'm not sure I understand how the Stub component is intended to be used.
The canonical example seems to be a JMS consumer in production. Camel in
Action says "stub any Camel endpoint by prefixing the endpoint with stub:".
Cool, well if I'm testing production routes, I don't want to modify them,
so would it make sense to use replaceFromWith() to replace the JMS consumer
with a stub? How would this be better than just replacing the JMS consumer
with a direct or vm? Does stub offer some other benefit?

Thanks for any ideas or suggestions.

Jeremy

Reply via email to