activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Hofstaedter (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-1487) Bug in ActiveMQSession::send() prevents non-persistent messages from being sent sync
Date Fri, 09 Nov 2007 02:07:22 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Hofstaedter updated AMQ-1487:
-----------------------------------

    Attachment: ActiveMQSession.java

> Bug in ActiveMQSession::send() prevents non-persistent messages from being sent sync
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-1487
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1487
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 4.0.2
>         Environment: Windows XP, AMQ 4.0.2, Client side non-peristent but response-required
message producer to an embedded broker with a failover demand forwarding bridge to a persisting
broker (persisting broker has a custom broker filter to mark all incoming messages as persistent).
>            Reporter: Chris Hofstaedter
>         Attachments: ActiveMQSession.java
>
>
> I have not tested this issue against any version other than 4.0.2.
> ActiveMQSession::send() contains the following code:
>         if(!msg.isPersistent() || connection.isUseAsyncSend() || txid!=null) {
>             this.connection.asyncSendPacket(msg);
>         } else {
>             this.connection.syncSendPacket(msg);
>         }
> This predicate short-circuits if the message is non-persistent and sends the message
async even if the message is marked with "Response Required".
> Modified the predicate to:
>         if(!msg.isResponseRequired() && (!msg.isPersistent() || connection.isUseAsyncSend()
|| txid!=null)) {
>             this.connection.asyncSendPacket(msg);
>         } else {
>             this.connection.syncSendPacket(msg);
>         }
> This local patch resolved my issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message