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() {
from("mina:tcp://localhost:6789?textline=true&sync=true")
.to("test-jms:queue:test.queue") }
});
context.start();
Thread.sleep(10000000);
context.stop();
Kindly suggest me where I need to add the logic and is there any flag
available for this.
--
View this message in context:
http://camel.465427.n5.nabble.com/JMS-acknowledgement-message-to-calling-endpoint-tp5743234.html
Sent from the Camel - Users mailing list archive at Nabble.com.