FAQ
${exchange} doesn't seem to work


Thanks,
~dg

Search Discussions

  • Claus Ibsen at Mar 18, 2015 at 7:30 pm
    Hi

    No what is the use-case?
    On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote:
    ${exchange} doesn't seem to work


    Thanks,
    ~dg


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/
  • Camel Guy at Mar 18, 2015 at 7:50 pm
    Deep in the "message stack" I want to do this:

    <log message="Finished: ${exchange.getFromRouteId}">

    .. instead of putting the "from" routeId into a property or header, which
    is what I was doing because I was ignorant of exchange.getFromRouteId.
    On Wed, Mar 18, 2015 at 12:30 PM, Claus Ibsen wrote:

    Hi

    No what is the use-case?
    On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote:
    ${exchange} doesn't seem to work


    Thanks,
    ~dg


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/
  • Claus Ibsen at Mar 18, 2015 at 8:01 pm
    There is a route id function

    ${routeId}

    See the functions in the table at
    http://camel.apache.org/simple
    On Wed, Mar 18, 2015 at 8:48 PM, Camel Guy wrote:
    Deep in the "message stack" I want to do this:

    <log message="Finished: ${exchange.getFromRouteId}">

    .. instead of putting the "from" routeId into a property or header, which
    is what I was doing because I was ignorant of exchange.getFromRouteId.
    On Wed, Mar 18, 2015 at 12:30 PM, Claus Ibsen wrote:

    Hi

    No what is the use-case?
    On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote:
    ${exchange} doesn't seem to work


    Thanks,
    ~dg


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/
  • Camel Guy at Mar 18, 2015 at 8:32 pm
    Thank you -- That is helpful but actually I am converting getFromEndpoint
    to a string and logging that, but I can stuff most of the information into
    routeId. Also, since I can get to exchange via groovy, I can do anything
    without resorting to writing a bean, just not conveniently as a one liner
    in <log>.

    ~ cg
    On Wed, Mar 18, 2015 at 1:00 PM, Claus Ibsen wrote:

    There is a route id function

    ${routeId}

    See the functions in the table at
    http://camel.apache.org/simple
    On Wed, Mar 18, 2015 at 8:48 PM, Camel Guy wrote:
    Deep in the "message stack" I want to do this:

    <log message="Finished: ${exchange.getFromRouteId}">

    .. instead of putting the "from" routeId into a property or header, which
    is what I was doing because I was ignorant of exchange.getFromRouteId.
    On Wed, Mar 18, 2015 at 12:30 PM, Claus Ibsen wrote:

    Hi

    No what is the use-case?
    On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote:
    ${exchange} doesn't seem to work


    Thanks,
    ~dg


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/
  • Claus Ibsen at Mar 19, 2015 at 6:44 am
    Hi

    I logged a ticket to add exchange function to the simple language
    https://issues.apache.org/jira/browse/CAMEL-8512
    On Wed, Mar 18, 2015 at 9:00 PM, Claus Ibsen wrote:
    There is a route id function

    ${routeId}

    See the functions in the table at
    http://camel.apache.org/simple
    On Wed, Mar 18, 2015 at 8:48 PM, Camel Guy wrote:
    Deep in the "message stack" I want to do this:

    <log message="Finished: ${exchange.getFromRouteId}">

    .. instead of putting the "from" routeId into a property or header, which
    is what I was doing because I was ignorant of exchange.getFromRouteId.
    On Wed, Mar 18, 2015 at 12:30 PM, Claus Ibsen wrote:

    Hi

    No what is the use-case?
    On Wed, Mar 18, 2015 at 8:18 PM, Camel Guy wrote:
    ${exchange} doesn't seem to work


    Thanks,
    ~dg


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/


    --
    Claus Ibsen
    -----------------
    Red Hat, Inc.
    Email: cibsen@redhat.com
    Twitter: davsclaus
    Blog: http://davsclaus.com
    Author of Camel in Action: http://www.manning.com/ibsen
    hawtio: http://hawt.io/
    fabric8: http://fabric8.io/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriescamel
postedMar 18, '15 at 7:20p
activeMar 19, '15 at 6:44a
posts6
users2
websitecamel.apache.org

2 users in discussion

Camel Guy: 3 posts Claus Ibsen: 3 posts

People

Translate

site design / logo © 2021 Grokbase