Camel in OSGi Container: Apply InterceptStrategy to all camel contexts

后端 未结 3 1001
梦如初夏
梦如初夏 2021-02-18 14:23

I have several bundles (A, B, and C) deployed to an OSGi container, each containing a CamelContext and some routes. I have another bundle (M) with a CamelCont

3条回答
  •  感情败类
    2021-02-18 14:56

    One of the possibility is define a custom Tracer in Bundle 'M' and export it as osgi service.

    In bundle A,B,C define osgi-reference to exported Tracer bean

    Use camel JMX to enable trace.

    This will result changes in bundle A,B,C but it will be minimal and it will also give ability to integrate and configure tracing (intercepting)

    I have not tried this myself, but hth

提交回复
热议问题