camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dharini <>
Subject JMS acknowledgement message to calling endpoint
Date Thu, 14 Nov 2013 06:42:10 GMT
I am trying to send back a acknowledgement from a JMS queue. Below is my line
of code. 

context = new DefaultCamelContext();

			   ConnectionFactory connectionFactory =
		                new ActiveMQConnectionFactory(
"vm://localhost?broker.persistent=false" );
		            context.addComponent( "test-jms",
JmsComponent.jmsComponentAutoAcknowledge( connectionFactory ) );
			context.addRoutes(new RouteBuilder() {
				public void configure() {
						.to("test-jms:queue:test.queue")				}

Kindly suggest me where I need to add the logic and is there any flag
available for this. 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message