Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28D6410DEE for ; Thu, 14 Nov 2013 06:47:08 +0000 (UTC) Received: (qmail 7055 invoked by uid 500); 14 Nov 2013 06:46:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 7018 invoked by uid 500); 14 Nov 2013 06:46:55 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 635 invoked by uid 99); 14 Nov 2013 06:42:37 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of dharini.kandasamy@polarisft.com does not designate 216.139.236.26 as permitted sender) Date: Wed, 13 Nov 2013 22:42:10 -0800 (PST) From: dharini To: users@camel.apache.org Message-ID: <1384411330279-5743234.post@n5.nabble.com> Subject: JMS acknowledgement message to calling endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.