You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by swwyatt <st...@sungard.com> on 2012/06/14 20:33:54 UTC

URI attribute

I have a route similar to the one below. In the from uri, I am thinking that
I should have used a ref attribute instead of a uri attribute. It seems to
work, but is this ok?

<camel:endpoint id="import" uri="direct:import" />
		
<camel:route id="import-route">
  <camel:from uri="import"></camel:from>
  <camel:log message="It works!!"></camel:log>
</camel:route>


--
View this message in context: http://camel.465427.n5.nabble.com/URI-attribute-tp5714496.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: URI attribute

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Jun 14, 2012 at 8:33 PM, swwyatt <st...@sungard.com> wrote:

> I have a route similar to the one below. In the from uri, I am thinking
> that
> I should have used a ref attribute instead of a uri attribute. It seems to
> work, but is this ok?
>
> <camel:endpoint id="import" uri="direct:import" />
>
> <camel:route id="import-route">
>  <camel:from uri="import"></camel:from>
>  <camel:log message="It works!!"></camel:log>
> </camel:route>
>
>
Using uri="import" works because you use the <camel:endpoint> where you
enlist an endpoint with the given id.
But you should prefer to use the ref attribute, or use uri="ref:import", eg
the ref component to refer to an endpoint by a given id.


>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/URI-attribute-tp5714496.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen