camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Chheng <>
Subject amazon sqs route shutting down?
Date Wed, 02 Mar 2011 16:20:03 GMT
I want to define a route to poll from an amazon SQS queue.
val context = new DefaultCamelContext(reg)
context.addRoutes(new RouteBuilder{
override def configure(){
where test_sqs is in the registry for an AmazonSQSClient(credentials) object

It seems to connect fine but when I run it(using mvn exec:java -Dexec.mainClass), but it shutsdown
immediately after.

DefaultCamelContext Route: route1 started and consuming from: Endpoint[aws-sqs://test_development?amazonSQSClient=%23test_sqs]

How can I prevent the process from immediately shuting down? I want the process to run to
continously poll the SQS queue.

If I replace the aws-sqs queue with a local activemq, the camel application runs successfully
until issued a shutdown command.
context.addComponent("activemq", ActiveMQComponent.activeMQComponent(Config.activeMqConnection))


  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message