You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by fbarbat <fb...@gmail.com> on 2013/03/06 23:10:28 UTC

How to know if a component is InOnly by default

In http://camel.apache.org/event-message.html it says that "The default
behaviour of many Components is InOnly such as for JMS, File or SEDA". How
can I know if a specific component is InOnly? For example, the "direct"
component.

Thanks.



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-know-if-a-component-is-InOnly-by-default-tp5728702.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to know if a component is InOnly by default

Posted by Hadrian Zbarcea <hz...@gmail.com>.
The route MEP is ignored by almost all the components and almost 
useless. So you can get it from the exchange, but it won't help you much.

You need to read the doc for the components you're using and understand 
what they do given the uri configuration you used.

My $0.02,
Hadrian


On 03/07/2013 01:29 AM, Claus Ibsen wrote:
> On Wed, Mar 6, 2013 at 11:10 PM, fbarbat <fb...@gmail.com> wrote:
>> In http://camel.apache.org/event-message.html it says that "The default
>> behaviour of many Components is InOnly such as for JMS, File or SEDA". How
>> can I know if a specific component is InOnly? For example, the "direct"
>> component.
>>
>
> You can read what the MEP of the Exchange is, there is a
> getExchangePattern method on the Exchange API.
>
> The direct component does not change/set the MEP as its a bit special.
> Its used for like with direct invocations, to call another route from
> a route. Then the MEP is used as is.
>
>
>
>> Thanks.
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/How-to-know-if-a-component-is-InOnly-by-default-tp5728702.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>

Re: How to know if a component is InOnly by default

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Mar 6, 2013 at 11:10 PM, fbarbat <fb...@gmail.com> wrote:
> In http://camel.apache.org/event-message.html it says that "The default
> behaviour of many Components is InOnly such as for JMS, File or SEDA". How
> can I know if a specific component is InOnly? For example, the "direct"
> component.
>

You can read what the MEP of the Exchange is, there is a
getExchangePattern method on the Exchange API.

The direct component does not change/set the MEP as its a bit special.
Its used for like with direct invocations, to call another route from
a route. Then the MEP is used as is.



> Thanks.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-know-if-a-component-is-InOnly-by-default-tp5728702.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen