Return-Path: Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: (qmail 32150 invoked from network); 25 Jan 2011 03:23:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2011 03:23:49 -0000 Received: (qmail 29675 invoked by uid 500); 25 Jan 2011 03:23:49 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 29619 invoked by uid 500); 25 Jan 2011 03:23:48 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 29609 invoked by uid 99); 25 Jan 2011 03:23:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 03:23:47 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 03:23:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BE0B923889BF; Tue, 25 Jan 2011 03:23:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1063123 - in /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client: AMQSession.java AMQSession_0_10.java AMQSession_0_8.java BasicMessageProducer.java BasicMessageProducer_0_10.java BasicMessageProducer_0_8.java Date: Tue, 25 Jan 2011 03:23:22 -0000 To: commits@qpid.apache.org From: rajith@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110125032322.BE0B923889BF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rajith Date: Tue Jan 25 03:23:22 2011 New Revision: 1063123 URL: http://svn.apache.org/viewvc?rev=1063123&view=rev Log: QPID-3019 The createMessageProducer method now throws a JMSException. The MessageProducer constructors now throw an AMQException allowing any exceptions caught during destination validation to be propogated back to the createMessageProducer method. Fixed the exception handling for the 0-10 code path where all exceptions are chained properly. This allows the user to get all the relavent information by examing the stack trace. Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_8.java qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_10.java qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer_0_8.java Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java?rev=1063123&r1=1063122&r2=1063123&view=diff ============================================================================== --- qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java (original) +++ qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java Tue Jan 25 03:23:22 2011 @@ -2566,7 +2566,7 @@ public abstract class AMQSession