activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Nawrocki (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-2712) QueueBrowser in transacted session fails
Date Fri, 23 Apr 2010 16:45:24 GMT

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

Dan Nawrocki updated AMQ-2712:
------------------------------

    Attachment: JmsTransactedQueueBrowserTest.java

Unit test for the failure.

> QueueBrowser in transacted session fails
> ----------------------------------------
>
>                 Key: AMQ-2712
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2712
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.3.1
>            Reporter: Dan Nawrocki
>         Attachments: JmsTransactedQueueBrowserTest.java
>
>
> A QueueBrowser cannot be used on a transacted session.  During the call to destroyConsumer(),
the call:
>             if (session.getTransacted()) {
>                 session.commit();
>             }
> will fail and the consumer will not be closed.
> Additionally, when calling nextElement(), the ackLater() method (called by beforeMessageIsConsumed(),
called by receiveNoWait(), called by nextElement()) will throw a JMSException.
> The latter issue may be related to https://issues.apache.org/activemq/browse/AMQ-2659,
but the former is not.
> The workaround is to always use non-transacted QueueBrowsers and manually handle any
issues if you try to consume a message found in the QueueBrowser.

-- 
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