[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]