camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bikehead <>
Subject Invoking a static bean method in my camel xml
Date Wed, 27 Feb 2013 13:50:15 GMT
Is it possible to invoke a static method to a class within my camel.xml

For example I'd like to do something like:
<bean class="org.apache.log4j.MDC" method="put('dpservices.storyKey',
${body.urlKey})" />

Googleing shows an example of java route builder doing the equivilant of:
.bean(org.apache.log4j.MDC.class, "put('dpservices.storyKey',

when buiding the route, but I can't find any discussion of doing it in an
xml file


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

View raw message