Hi

That is just an endpoint, its not something evaluated for a given
exchange/message when being defined.

So you need to just configure them as string literals as-is.
So they have special meaning for your component. But what you do is wrong.

If you need dynamic uris in Camel then you use toD for example.

What a component often do, is to have known headers that can override
configuration options, like JMS has for some of its values.
https://camel.apache.org/components/4.0.x/jms-component.html#_message_headers


On Sun, Dec 3, 2023 at 10:19 PM Steve973 <steve...@gmail.com> wrote:

> Hello.  I am writing tests for my component with Spring, and configuring in
> xml.  How can I specify these values so that it looks in the header,
> instead of interpreting these as literal string values?
>
> <endpoint id="subscribe-no-url-predicate"
> uri="dynamic-router-control://subscribe">
>     <property key="subscribeChannel" value="${headers.subscribeChannel}"/>
>     <property key="subscriptionId" value="${headers.subscriptionId}"/>
>     <property key="destinationUri" value="${headers.destinationUri}"/>
>     <property key="priority" value="${headers.priority}"/>
> </endpoint>
>
> Thanks,
> Steve
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to