Skip to content

Instantly share code, notes, and snippets.

@pax95
Last active August 29, 2015 14:17
Show Gist options
  • Save pax95/48ca3bba7f55bb3f67b5 to your computer and use it in GitHub Desktop.
Save pax95/48ca3bba7f55bb3f67b5 to your computer and use it in GitHub Desktop.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() throws Exception {
from("ironmq:testqueue?projectId=myproject&token=mytoken&maxMessagesPerPoll=100&wait=30&ironMQCloud=http://mq-aws-eu-west-1-1.iron.io" +
+ "&concurrentConsumers=20&batchDelete=true").to("mock:result");
from("seda:push?concurrentConsumers=20").to("ironmq:testqueue?projectId=myproject&token=mytoken&maxMessagesPerPoll=100&ironMQCloud=http://mq-aws-eu-west-1-1.iron.io").to("mock:iron");
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment