modified main

This commit is contained in:
2021-11-22 16:21:25 +01:00
parent fcc526f6e2
commit c58df6de35

View File

@@ -56,7 +56,7 @@ public class Main {
.setBody(simple("SELECT * FROM package WHERE material_id = :?material_id")) .setBody(simple("SELECT * FROM package WHERE material_id = :?material_id"))
.to("jdbc:source?useHeadersAsParameters=true"); .to("jdbc:source?useHeadersAsParameters=true");
from("activemq:queue:RawMaterial")//subskruypcja from("activemq:queue:RawMaterial")
.enrich("direct:getPackages", new MergeAggregator()) .enrich("direct:getPackages", new MergeAggregator())
.process(new ValidatorProcess()) .process(new ValidatorProcess())
.choice() .choice()
@@ -66,6 +66,7 @@ public class Main {
.to("log:?level=INFO&showBody=true"); .to("log:?level=INFO&showBody=true");
from("activemq:topic:Material?clientId=1&durableSubscriptionName=FilteredType") from("activemq:topic:Material?clientId=1&durableSubscriptionName=FilteredType")
.filter().xpath("//material_type='A1' or //material_type='A2' or //material_type='A3'") .filter().xpath("//material_type='A1' or //material_type='A2' or //material_type='A3'")
.to("activemq:queue:FilteredType"); .to("activemq:queue:FilteredType");