[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-1821) Messaging Bridge not closed correctly

Benjamin Graf (JIRA) jira-events at lists.jboss.org
Fri Oct 15 09:07:40 EDT 2010


     [ https://jira.jboss.org/browse/JBMESSAGING-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Graf updated JBMESSAGING-1821:
---------------------------------------

    Summary: Messaging Bridge not closed correctly  (was: Messaing Bridge not closed correctly)


> Messaging Bridge not closed correctly
> -------------------------------------
>
>                 Key: JBMESSAGING-1821
>                 URL: https://jira.jboss.org/browse/JBMESSAGING-1821
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: Messaging Core
>    Affects Versions: 1.4.2.GA.SP1
>         Environment: all
>            Reporter: Benjamin Graf
>            Priority: Minor
>
> When messaging bridge is stopped/undeployed and the underlying transaction is rolling back their are still messages received by listener outside the transaction. It seems that those messages are "lost" until server restarts.
> This could be patched by closing consumer before tx rollback.
> try
>       {
>           consumer.close();
>       }
>       catch (Exception ignore)
>       {
>          if (trace) { log.trace("Failed to close consumer", ignore); }
>       }
> if (tx != null)
>       {
>          //Terminate any transaction
>          if (trace) { log.trace("Rolling back remaining tx"); }
>          try
>          {
>             tx.rollback();
>          }
>          catch (Exception ignore)
>          {
>             if (trace) { log.trace("Failed to rollback", ignore); }
>          }
>          if (trace) { log.trace("Rolled back remaining tx"); }
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list