As an irrelevant poorly opinionated opinion, I find apache camel docs too presumptuous in presuming the reader has a background in camel already.
In normal terms, a web service provider is a producer, and a client of the service it produces is a consumer.
Let's look at http://camel.apache.org/pojo-producing.html.
Which says, there are two diff ways to send messages to Camel Endpoint.
@EndpointInjecct (uri ..) ProducerTemplate ...
Is it saying
Hey I;m an endpoint and this is my uri and a template to hit me with, so hit me
Or, hmm ... there is an endpoint with this uri somewhere out there beneath the clear blue skies, and here is the template I presume I'm gonna hit it with
???
Similarly, is @Produce, and ProducerTemplate
- specifying I'm an endpoint that is going to get hit?
- or specifying the template of a producer I am going to hit??
Similarly, @Consume,
- Am I specifying I am a consumer?
- Or that I am specifying how I am to be consumed?
And BTW, the uri in @Produce(uri) or EndpointInjection (uri)
- am I sending to this uri?
- or recceiving under this uri?