ahha great thanks - didn't spot that in the docs.

On Mon, May 16, 2011 at 5:36 PM, Claus Ibsen <[email protected]> wrote:

> You can use ref:XXX in the deadLetterUri, to refer to a <endpoint>.
>
> On Mon, May 16, 2011 at 6:30 PM, Tom Howe <[email protected]> wrote:
> > Hi,
> > We are using Property placeholders successfully in our routes but I
> cannot
> > find a way to use them for deadletter queues..
> >
> > In the below XML example. You can see I am pulling in the value of
> > ${ispy-in.endpoint} from a properties file to define the endpoint used in
> > the route.
> > I want to do a similar thing for the errorHandler's deadletteruri but
> > deadLetterUri seems to only take a URI. If I do something like
> > deadLetterUri="${dead.error}" /> I get an error a bit like :
> >
> > "..Couldn't merge properties, the first properties object contains a key
> > that doesn't exist in the second. The key is called..."
> >
> > Any suggestions?
> >
> > Thanks, Tom
> >
> >  <camelContext id="mrs" autoStartup="true" xmlns="
> > http://camel.apache.org/schema/spring";>
> >
> >        <errorHandler id="ispy.error" type="DeadLetterChannel"
> > deadLetterUri="XXXX" >
> >        </errorHandler>
> >
> >        <!--direct endpoints-->
> >        <endpoint id="ispy.in" uri="${ispy-in.endpoint}"/>
> >
> >        <!-- convert ispy messages to xml and place in general in queue
> -->
> >        <route autoStartup="true" inheritErrorHandler="ispy.error" xmlns="
> > http://camel.apache.org/schema/spring";>
> >            <from ref="ispy.in"/>
> >            <to ref="general.in"/>
> >        </route>
> > </camel>
> >
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [email protected]
> Web: http://fusesource.com
> CamelOne 2011: http://fusesource.com/camelone2011/
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Reply via email to