You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2008/02/15 08:45:07 UTC
[jira] Created: (SYNAPSE-240) Issue posting to JMS 1.0.x Topics
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
[jira] Resolved: (SYNAPSE-240) Issue posting to JMS 1.0.x Topics
Posted by "Asankha C. Perera (JIRA)" <ji...@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