FAQ
Is there a way to determine the type of object in the exchange body using
spring dsl?

I tried,

<simple>${body.class.simpleName} == 'MyClass'</simple>

but got an exception.

--
View this message in context: http://camel.465427.n5.nabble.com/Exchange-body-type-tp5529385p5529385.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Search Discussions

  • Randy Bowen at Mar 1, 2012 at 10:19 pm
    I use:

    <simple>${body} is org.my.SpecificClass</simple>



    -----Original Message-----
    From: swwyatt
    Sent: Thursday, March 01, 2012 2:15 PM
    To: users@camel.apache.org
    Subject: Exchange body type

    Is there a way to determine the type of object in the exchange body
    using spring dsl?

    I tried,

    <simple>${body.class.simpleName} == 'MyClass'</simple>

    but got an exception.

    --
    View this message in context:
    http://camel.465427.n5.nabble.com/Exchange-body-type-tp5529385p5529385.h
    tml
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Swwyatt at Mar 1, 2012 at 10:29 pm
    Ah thanks. It's even in the simple documentation that I didn't read...

    --
    View this message in context: http://camel.465427.n5.nabble.com/Exchange-body-type-tp5529385p5529430.html
    Sent from the Camel - Users mailing list archive at Nabble.com.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriescamel
postedMar 1, '12 at 10:15p
activeMar 1, '12 at 10:29p
posts3
users2
websitecamel.apache.org

2 users in discussion

Swwyatt: 2 posts Randy Bowen: 1 post

People

Translate

site design / logo © 2021 Grokbase