Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 78325 invoked from network); 15 Feb 2008 07:47:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2008 07:47:33 -0000 Received: (qmail 19689 invoked by uid 500); 15 Feb 2008 07:47:25 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 19632 invoked by uid 500); 15 Feb 2008 07:47:25 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 19611 invoked by uid 99); 15 Feb 2008 07:47:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 23:47:25 -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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2008 07:47:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2380F71406F for ; Thu, 14 Feb 2008 23:47:10 -0800 (PST) Message-ID: <30312930.1203061630126.JavaMail.jira@brutus> Date: Thu, 14 Feb 2008 23:47:10 -0800 (PST) From: "Asankha C. Perera (JIRA)" To: dev@synapse.apache.org Subject: [jira] Resolved: (SYNAPSE-240) Issue posting to JMS 1.0.x Topics In-Reply-To: <28364939.1203061507987.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SYNAPSE-240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Asankha C. Perera resolved SYNAPSE-240. --------------------------------------- Resolution: Fixed Replacing JMSUtils public static void sendMessageToJMSDestination(Session session, Destination destination, Message message) throws AxisFault method's if (destination instanceof Queue) { producer = ((QueueSession) session).createSender((Queue) destination); ((QueueSender) producer).send(message); } else { producer = ((TopicSession) session).createPublisher((Topic) destination); ((TopicPublisher) producer).publish(message); } with if (JMSConstants.DESTINATION_TYPE_TOPIC.equals(destinationType)) { producer = ((TopicSession) session).createPublisher((Topic) destination); ((TopicPublisher) producer).publish(message); } else { producer = ((QueueSession) session).createSender((Queue) destination); ((QueueSender) producer).send(message); } while passing the destination type to the method > Issue posting to JMS 1.0.x Topics > --------------------------------- > > Key: SYNAPSE-240 > URL: https://issues.apache.org/jira/browse/SYNAPSE-240 > Project: Synapse > Issue Type: Bug > Affects Versions: 1.1.1 > Reporter: Asankha C. Perera > Assignee: Asankha C. Perera > Fix For: 1.2 > > > When using JMS 1.0.x, a "Destination" returned by a JNDI lookup with some providers (SwiftMQ 2.1.2) can implement both the Queue and Topic interfaces.. This causes the JMS sender to assume its posting to a Queue -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org