Ah, thanks for the explanation!

I see a JIRA ticket was opened as well, thanks.

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:

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

Thanks for the quick responses.

-- Dan


--
View this message in context: 
http://camel.465427.n5.nabble.com/How-do-I-access-the-message-class-name-from-Simple-tp4842269p4846649.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to