activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pablo La Greca (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3485) Transacted Session returns invalid MessageConsumer after the first MessageConsumer for the same destiantion. Bug introduced in 5.5.0 - working ok in 4.1.2
Date Fri, 16 Sep 2011 19:02:16 GMT

    [ https://issues.apache.org/jira/browse/AMQ-3485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106710#comment-13106710
] 

Pablo La Greca commented on AMQ-3485:
-------------------------------------

Thanks Timothy. But I really don't understand. 

If the session is not close, why I'm not able to create one consumer, close it, and then create
another. And in the end commit()/rollback() the session?. This should be allowed as it is
in previous ActiveMQ releases.

> Transacted Session returns invalid MessageConsumer after the first MessageConsumer for
the same destiantion. Bug introduced in 5.5.0 - working ok in 4.1.2
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3485
>                 URL: https://issues.apache.org/jira/browse/AMQ-3485
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.5.0
>            Reporter: Pablo La Greca
>         Attachments: activemq-issue-test-case.zip
>
>
> When I have a transacted Session, as it is single threaded I can't create two MessageConsumer
to the same Destination. But if I create a MessageConsumer to a Destination and then I close
it, then I should be able to create a new MessageConsumer to the same Destination. This is
working fine in active mq 4.1.2 but it doesn't work in 5.5.0. It allows to create a second
MessageConsumer but that seconde MessageConsumer always returns null when the queue has messages.
> i.e:
> Session session = .... //transacted session
> Destination dest = .... 
> MessageConsumer mc = session.createMessageConsumer(dest);
> Message message = mc.receive(); // message received ok
> mc.close();
> mc = session.createMessageConsumer(dest);
> Message message = mc.receive(); // message is null
> Thanks, Pablo.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message