[ 
http://jira.codehaus.org/browse/XFIRE-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94820
 ] 

Tom Lambrechts commented on XFIRE-940:
--------------------------------------

Fixed in trunk!


> Ivocation should throw exception when it timeouts on a asynchronous channel.
> ----------------------------------------------------------------------------
>
>                 Key: XFIRE-940
>                 URL: http://jira.codehaus.org/browse/XFIRE-940
>             Project: XFire
>          Issue Type: Bug
>          Components: JMS
>         Environment: trunc
> jms endpoint
>            Reporter: Tom Lambrechts
>            Assignee: Dan Diephouse
>         Attachments: Invocation.java
>
>   Original Estimate: 10 minutes
>  Remaining Estimate: 10 minutes
>
> When no response message is receive (when using asynchronous channel) and the 
> invocation time outs an error should be thrown.
> Now the XFireClientFactoryBean returns null when nothing is received in time.
> protected void waitForResponse()
>     {
>         /**
>          * If this is an asynchronous channel, we'll need to sleep() and wait
>          * for a response. Channels such as HTTP will have the response set
>          * by the time we get to this point.
>          */
>         if (!client.getOutChannel().isAsync() || 
>                 response != null ||
>                 fault != null || 
>                 !context.getExchange().getOperation().hasOutput())
>         {
>             return;
>         }
>         
>         int count = 0;
>         while (response == null && fault == null && count < 
> client.getTimeout())
>         {
>             try
>             {
>                 Thread.sleep(50);
>                 count += 50;
>             }
>             catch (InterruptedException e)
>             {
>                 break;
>             }
>         }
>         
>         if(response == null)
>             throw new RuntimeException("Service unavailable.");  //if there 
> is no
>     }

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to