Apache camel 在Karaf OSGi中从Camel BLueprint DSL中的其他捆绑包加载bean时出现的问题

Apache camel 在Karaf OSGi中从Camel BLueprint DSL中的其他捆绑包加载bean时出现的问题,apache-camel,apache-karaf,aries,Apache Camel,Apache Karaf,Aries,根据专家的建议,我正在尝试使用Camel(2.18.2)+karaf(4.0.8)+blueprint(白羊座)进行迁移 我将文件分为路由XML文件和bean XML文件。 RouteXml->它只有驼峰路线 BeanXml->它只有bean定义 结构:: Bundle-Conf/OSGI-INF/blueprint/rootCamelContext.xml Bundle-A/OSGI-INF/blueprint/RouteContextA.xml

根据专家的建议,我正在尝试使用Camel(2.18.2)+karaf(4.0.8)+blueprint(白羊座)进行迁移

我将文件分为路由XML文件和bean XML文件。 RouteXml->它只有驼峰路线 BeanXml->它只有bean定义

结构::

      Bundle-Conf/OSGI-INF/blueprint/rootCamelContext.xml
      Bundle-A/OSGI-INF/blueprint/RouteContextA.xml
              /OSGI-INF/blueprint/BeansA2.xml
      Bundle-B/OSGI-INF/blueprint/RouteContextB.xml
              /OSGI-INF/blueprint/BeansB2.xml
      karaf/Config/Routes/RoutesA1.xml
      karaf/Config/Routes/RoutesB1.xml 

    rootCamelContext.xml -> it has CamelContext and Has some routes and beans  defined .
    RouteContextA.xml-> it has <RouteContex> with some routes
    RoutesA1.xml-> it has <Routes> with some routes
    BeansA2.xml-> it has <Blueprint> with some beans

    RouteContextB.xml-> it has <RouteContex> with some routes
    RoutesB1.xml-> it has <Routes> with some routes
    BeansB2.xml-> it has <Blueprint> with some beans
osgi.service.blueprint.compname=customBeanProcessor


谢谢,

您也尝试过导入Conf包中的包吗?另外,添加错误可能会有所帮助。发出命令
log:display
在卡拉夫内部。
      karaf-root()>ls |grep -i custom
      [org.apache.camel.Processor, com.rnd.model.impl.CustomServiceProcessorBase, com.rnd.generic.CustomServiceProcessor]