首页 > 解决方案 > 如何使用 Jolokia 从 camelcontext 返回 JSON 数据?

问题描述

我有一个简单的 testroute.xml:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
    <camelContext xmlns="http://camel.apache.org/schema/blueprint">
        <route>
            <from uri="timer:simple?period=5000"/>
            <setBody>
                <simple>Time for a message</simple>
            </setBody>
            <to uri="stream:out"/>
        </route>
    </camelContext>
</blueprint>

camelContext我将如何用 Jolokia归还所有东西?

标签: xmlapache-karafjolokia

解决方案


推荐阅读