synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SYNAPSE-240) Issue posting to JMS 1.0.x Topics
Date Fri, 15 Feb 2008 07:47:10 GMT

     [ 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


Mime
View raw message