Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 61389 invoked from network); 10 Oct 2007 12:37:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 12:37:41 -0000 Received: (qmail 2146 invoked by uid 500); 10 Oct 2007 12:37:29 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 1827 invoked by uid 500); 10 Oct 2007 12:37:28 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 1818 invoked by uid 99); 10 Oct 2007 12:37:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 05:37:28 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuenchi.lian@gmail.com designates 64.233.162.232 as permitted sender) Received: from [64.233.162.232] (HELO nz-out-0506.google.com) (64.233.162.232) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 12:37:32 +0000 Received: by nz-out-0506.google.com with SMTP id z3so125675nzf for ; Wed, 10 Oct 2007 05:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=WZaaGu+OYLwwYwB4nxe3EsvVVSLfhNNGq7byww1kZ54=; b=eSzz2LFqsUlXYcCv+p+lpIfmVrTCMCn+KvPtmqSHege7i0tlIRgUnGZQM1zkb/2kDd9zPhXSDRm7rAbJMrFizE8YpcIJ3SrwuX5qXschC2vihhaEvWyjQ05mJSEzRBqRBB39MOXovKlfrWhSvV2NFm24thaNm+3AMYapwOif4d8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=iXlLuQXWdfboBR0I3TpC44rxk6kWMYhYU63Za2VTcdvweVPDr9pCiSL+K4q4oJ7cecMy77OX9k3LQeaGGoPj6WoJc+pVcLOuEHY21Ac58gwRUq+MIvbNysFKGyvcegUSBeqB05GeG+YpWuVJuLdFRWUeW0rhm2eJ+/D5uWT6LO0= Received: by 10.65.254.5 with SMTP id g5mr1448999qbs.1192019814448; Wed, 10 Oct 2007 05:36:54 -0700 (PDT) Received: by 10.65.158.5 with HTTP; Wed, 10 Oct 2007 05:36:54 -0700 (PDT) Message-ID: <47f497ea0710100536x6faea9e0o1b567764acc5b3ad@mail.gmail.com> Date: Wed, 10 Oct 2007 20:36:54 +0800 From: "Yuen Chi Lian" To: users@activemq.apache.org Subject: Quick question on ActiveMQConnectionFactory and ActiveMQXAConnectionFactory MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50580_14016008.1192019814449" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_50580_14016008.1192019814449 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi guys, I have looked into the API documentation at: http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQXAConnectionFactory.html However, I couldn't find any information or confirmation regarding when and how should the ActiveMQXAConnectionFactory should be used. What I mean is, if I am not doing a XA transaction (but just a single resource transaction), is it wrong to use the ActiveMQXAConnectionFactory? Or it's actually my configuration mistake to cause this: javax.jms.JMSException: Session's XAResource has not been enlisted in a distributed transaction. at org.apache.activemq.ActiveMQXASession.doStartTransaction( ActiveMQXASession.java:109) at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1587) at org.apache.activemq.ActiveMQMessageProducer.send( ActiveMQMessageProducer.java:226) at org.apache.activemq.ActiveMQMessageProducerSupport.send( ActiveMQMessageProducerSupport.java:240) at foo.main.tx.TestSpringTx.testProducingToQueue(TestSpringTx.java:147) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run( TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196) Here's my configuration: I have tried grabbing each single bean above and the results are the same. -- Cheers, Yuen-Chi Lian "I do not seek; I find." - Pablo Picasso ------=_Part_50580_14016008.1192019814449--