camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Jakubiec (Commented) (JIRA)" <>
Subject [jira] [Commented] (CAMEL-4492) Be able to check classtype through simple language
Date Tue, 27 Sep 2011 19:21:45 GMT


Dan Jakubiec commented on CAMEL-4492:

For those seeking an interim workaround, I added a getType() function to the base class shared
by all my JMS messages: 

        public String getType() { 
                return this.getClass().getSimpleName(); 

Which now makes this work: 

                <from uri="activemq:topic:mytopic"/>
                <log logName="bus.messages" message="mytopic = ${body?.type} [${body}]"/>

> Be able to check classtype through simple language
> --------------------------------------------------
>                 Key: CAMEL-4492
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.8.1
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>              Labels: class, expression, patch, simple
> See
for the full context.
> In short be able to access Object.getClass() for usage in Camel's simple language.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message