Hi Ah the Simple language omits methods on java.lang.Object. We should likely permit to access the class to get the details from it, or introduce a function that can grab the type.
Fell free to create a JIRA ticket. On Mon, Sep 26, 2011 at 7:53 PM, djakubiec <[email protected]> wrote: > 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. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
