camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djakubiec <>
Subject Re: How do I access the message class name from Simple?
Date Tue, 27 Sep 2011 19:19:05 GMT
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:

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

Thanks for the quick responses.

-- Dan

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message