[jboss-jira] [JBoss JIRA] Created: (JBAS-4312) SpyConnectionConsumer should fire asynchFailure if it receives an error

Adrian Brock (JIRA) jira-events at lists.jboss.org
Tue Apr 10 10:55:58 EDT 2007


SpyConnectionConsumer should fire asynchFailure if it receives an error
-----------------------------------------------------------------------

                 Key: JBAS-4312
                 URL: http://jira.jboss.com/jira/browse/JBAS-4312
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: JMS service
    Affects Versions: JBossAS-4.2.0.CR1
            Reporter: Adrian Brock
         Assigned To: Adrian Brock
             Fix For: JBossAS-5.0.0.Beta2, JBossAS-4.2.0.GA, JBossAS-4.0.5.SP1 


Currently, the SpyConnectionConsumer does not fire an asynchFailure()
(which will in turn fire the exception listener) if it receives an error during the receive()

It assumes that the ServerIL will have already done this, but in the case of HTTPServerIL it does not.
The HTTPServerIL is "stateless" and contains no reference to the org.jboss.mq.Connection on which it can fire that error.

The fix in org.jboss.mq.SpyConnectionConsumer::run()
is schematically:

try
{
   // Receive handling
}
catch (Throwable t)
{
   close();
   + connection.asynchFailure("Error during receive", t);
}

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

        



More information about the jboss-jira mailing list