2017-11-15 2 views
0

2つの異なるラクダコンテキストを相互接続しながらエンドポイントでコンシューマを利用できないようにします。 JBossのヒューズ6.3 EAPサーバ6.4 パッケージ:戦争Apache camel 2.17スプリングコンテキストを使用してエンドポイントで利用できるコンシューマはありません

キャメルコンテキスト1:

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd     http://camel.apache.org/schema/spring     http://camel.apache.org/schema/spring/camel-spring.xsd"> 
    <camelContext xmlns="http://camel.apache.org/schema/spring"> 
     <route id="_route1"> 
      <from id="_from1" uri="file:C:/Temp/Selva/inbox?noop=true"/> 
      <log id="_log1" loggingLevel="INFO" message=" Proxy Route..!!! "/> 
      <to id="_to1" uri="direct-vm:inProvider"/> 
     </route> 
    </camelContext> 
</beans> 

キャメルコンテキスト2:

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans       http://www.springframework.org/schema/beans/spring-beans.xsd       http://camel.apache.org/schema/spring       http://camel.apache.org/schema/spring/camel-spring.xsd"> 
    <camelContext xmlns="http://camel.apache.org/schema/spring"> 
     <route id="_route1"> 
      <from id="_from1" uri="direct-vm:inProvider"/> 
      <log id="_log1" loggingLevel="INFO" message="Modelling Platform Router..!!! "/> 
      <to id="_to1" uri="file:C:/Users/cpiespc/Selva/outbox"/> 
     </route> 
    </camelContext> 
</beans> 

のweb.xml:

<?xml version="1.0" encoding="UTF-8"?> 
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> 
     <display-name>CamelContext</display-name> 
     <context-param> 
     <param-name>contextConfigLocation</param-name> 
     <param-value>classpath:META-INF/spring/*.xml</param-value> 
     </context-param> 
     <listener> 
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
     </listener> 
    </web-app> 
+0

してください。 – Bedla

答えて

0

あなたがすることはできませんJBossでdirect-vm経由で接続EAPをクラスローダの分離として使用すると、WARファイルとしてデプロイするときにEAPを回避できます。

あなたはwildfly-ラクダのサブモジュールを経由して、それを行うことができるかもしれませんが、私は知りませんが、あなたはそのチームに尋ねることができます:フルスタックトレースを追加https://github.com/wildfly-extras/wildfly-camel

+0

同じJVM内でWARデプロイメントと異なる2つのラクラのコンテキストを接続できる方法はありますか? VMのドキュメントhttp://camel.apache.org/vm.htmlのサンプルセクションでは、混乱する2つの異なるWARアプリケーションと2つの異なるコンテキストを接続することが示されています。この問題は、direct-vmの場合にのみ起こりますか? –

関連する問題