modified classes
This commit is contained in:
@@ -37,7 +37,10 @@ public class Main {
|
||||
connectionFactory.setPassword("admin");
|
||||
context.addComponent("activemq", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
|
||||
|
||||
//DAO dao = new DAO();
|
||||
DAO myFunctions = new DAO();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
context.addRoutes(new RouteBuilder() {
|
||||
@@ -46,11 +49,14 @@ public class Main {
|
||||
|
||||
from("direct:start").to("jdbc:source")
|
||||
.split(body())
|
||||
//.bean(myFunctions, "splitMaterial")
|
||||
.to("activemq:queue:material")
|
||||
.to("log:?level=INFO&showBody=true");
|
||||
|
||||
from("activemq:queue:material")
|
||||
.setBody(constant("SELECT * FROM package WHERE material_id = 1" + from("activemq:queue:material")))
|
||||
.split(body())
|
||||
.bean(myFunctions, "getId")
|
||||
.setBody(constant("SELECT * FROM package WHERE material_id = 1"))
|
||||
.to("jdbc:source")
|
||||
.to("activemq:queue:materialPackage")
|
||||
.to("log:?level=INFO&showBody=true");
|
||||
|
||||
Reference in New Issue
Block a user