Hi,
I have JMS topic where I publish a few different types of POJOs.
I'm trying to create a log message that prints out the class of each POJO
along with the toString() representation. I got the toString() printing,
but can't figure out how to get the class name via the Simple syntax.
This presently works to print out the toString:
<route>
<from uri="activemq:topic:mytopic"/>
<log logName="bus.messages" message="Got msg = [${body}]"/>
</route>
I *think* I want to do something like this:
<log logName="bus.messages" message="Got msg = ${body.class.getSimpleName}
[${body}]"/>
But when I do that I get various exceptions about class not being found.
Can someone help point me in the right direction?
Thanks!
--
View this message in context:
http://camel.465427.n5.nabble.com/How-do-I-access-the-message-class-name-from-Simple-tp4842269p4842269.html
Sent from the Camel - Users mailing list archive at Nabble.com.