Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 59485 invoked from network); 22 Nov 2008 11:38:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Nov 2008 11:38:57 -0000 Received: (qmail 16822 invoked by uid 500); 22 Nov 2008 11:39:06 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 16805 invoked by uid 500); 22 Nov 2008 11:39:06 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 16794 invoked by uid 99); 22 Nov 2008 11:39:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2008 03:39:05 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Nov 2008 11:37:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 603AE234C256 for ; Sat, 22 Nov 2008 03:38:05 -0800 (PST) Message-ID: <422573780.1227353885379.JavaMail.jira@brutus> Date: Sat, 22 Nov 2008 03:38:05 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-1110) JmsProducer has problem with new transactedInOut option not setting acknowledge mode on inout template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org JmsProducer has problem with new transactedInOut option not setting acknowledge mode on inout template ------------------------------------------------------------------------------------------------------ Key: CAMEL-1110 URL: https://issues.apache.org/activemq/browse/CAMEL-1110 Project: Apache Camel Issue Type: Sub-task Components: camel-jms Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.0.0 After debugging for a little while I think the createInOutTemplate in JMSConfiguration needs to cater for acknowledge mode if non transacted {code} org.apache.camel.RuntimeCamelException: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: acknowledgeMode SESSION_TRANSACTED cannot be used for an non-transacted Session at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:719) at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:138) at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:100) at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:104) at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:120) at org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:200) at org.apache.camel.component.jms.tx.NonTransactedInOutForJmsWithTxnMgrTest.testJmsNonTransactedInOutWithTxnMgr(NonTransactedInOutForJmsWithTxnMgrTest.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) Caused by: org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: acknowledgeMode SESSION_TRANSACTED cannot be used for an non-transacted Session at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308) at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474) at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:169) at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:172) at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:151) at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:136) ... 23 more Caused by: javax.jms.JMSException: acknowledgeMode SESSION_TRANSACTED cannot be used for an non-transacted Session at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:300) at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:462) ... 27 more {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.