단일 경로에서 Apache Camel에서 mutlicast를 한 번 이상 사용하려는 요구 사항이 있습니다. 즉 멀티 캐스트 내의 멀티 캐스트입니다.apache camel에서 여러 mutlicast를 사용할 수 있습니까?
<routeContext id="myRoute" xmlns="http://camel.apache.org/schema/spring">
<route id="myRouteId">
<from uri="activemq:queue:{{XXXX.queue}}" />
....
<multicast parallelProcessing="true">
<pipeline>
##everything working fine here
</pipeline>
<pipeline>
<multicast>
<pipeline>
<log message="Inserting in database now"></log>
<transform>
<method ref="insertBean" method="myBatchInsertion"></method>
</transform>
<choice>
<when>
<simple>${in.header.myCount} == ${properties:batch.size} </simple>
<to uri="sql:{{sql.core.insertMyQuery}}?batch=true"></to>
<log message="Inserted rows ${body}"></log>
</when>
</choice>
</pipeline>
</multicast>
</pipeline>
</multicast>
</route>
</routeContext>
그렇게 할 수 있습니까? 그 일을하려고 할 때 내 프로그램이 성공적으로 실행되지 않습니다. 실패한 실행은 다중 멀티 캐스트의 결과입니까? 아무도 도와 줄 수 있습니까? 다음 링크에서 참조를 얻었습니다 : http://camel.apache.org/multicast.html
당신은 당신이 실행되지 않은 경우에도 달성하기 위해 원하는 것을 보여주는 몇 가지 코드를 사용하여 질문을 편집 할 수 있습니다, 준수합니다 종료하지? –