Warning message

A translation for your language preference does not exist.

How do I log the original message sent into a camel route?

Solution 확인됨 - 업데이트됨 - 한국어 번역 요청

문제

How do I store the original message that came into the route in order to log it?

For example, I'd like to replace "I'M IN SLAVE MODE - DO NOTHING" with the actual message:

 <route>
        <from uri="direct:processOrders"/>
        <bean method="isMaster" ref="hasingleton"/>
        <choice>
            <when>
                <simple>${body} == true</simple>
                <to uri="file:c:/out/messages/?fileExist=Append&amp;fileName=messages.txt"/>
            </when>
            <otherwise>
                <log message="********* I'M IN SLAVE MODE - DO NOTHING"/>
            </otherwise>
        </choice>
    </route>

환경

  • JBoss Fuse 6.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content