在 karaf 中连接 hawtio 和 camel 应用程序

Connecting hawtio with camel app in karaf


我有 hawtio 连接到 karaf 4.2.1 上的 jlokia 代理。但我不明白如何将 hawtio 连接到部署在 karaf 或某些捆绑包中的骆驼路线(Spring dsl)?也许我需要在 camelContext 中设置 jlokia 代理?
有任何建议请帮助我。
karaf 的 Jolokia 代理人:

{"request":{"type":"version"},"value":{"agent":"1.6.0","protocol":"7.2","config":{"listenForHttpService":"true","authIgnoreCerts":"false","agentId":"10.183.173.218-4519-15cbbe6e-osgi","debug":"false","agentType":"servlet","policyLocation":"classpath:\/jolokia-access.xml","agentContext":"\/jolokia","serializeException":"false","mimeType":"text\/plain","dispatcherClasses":"org.jolokia.http.Jsr160ProxyNotEnabledByDefaultAnymoreDispatcher","authMode":"basic","streaming":"true","canonicalNaming":"true","historyMaxEntries":"10","allowErrorDetails":"true","allowDnsReverseLookup":"true","realm":"jolokia","includeStackTrace":"true","useRestrictorService":"false","debugMaxEntries":"100"},"info":{"product":"felix","vendor":"Apache","version":"5.6.10"}},"timestamp":1543929143,"status":200}

您需要在 Karaf 上部署一些 Camel 路由才能使 Hawtio Camel 选项卡在 Hawtio 控制台上可见。您不需要将 Hawtio 连接到远程 Jolokia 代理。 Hawtio可以在Karaf上安装如下:

feature:repo-add hawtio 2.3.0
feature:install hawtio