axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lien Tran (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4232) AxisCallback.onComplete does not get called on a non-blocking call
Date Fri, 24 Apr 2009 18:19:30 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702473#action_12702473
] 

Lien Tran commented on AXIS2-4232:
----------------------------------

This was supposedly fixed in AXIS2-3265 but when I looked at the code, it was not fixed.

Here's what I think the fix should look like:

The finally block of the OutInAxisOperation.NonBlockingInvocationWorker#run method should
be updated to call axisCallback.onComplete() to signal that the complete was done. 


            } finally {
                if (callback != null) {
                    callback.setComplete(true);
                } else {
                    axisCallback.onComplete();
                }
            }

> AxisCallback.onComplete does not get called on a non-blocking call
> ------------------------------------------------------------------
>
>                 Key: AXIS2-4232
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4232
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4.1
>            Reporter: Eurig Jones
>            Priority: Critical
>
> Hi,
> I'm executing ServiceClient.sendReceiveNonBlocking(org.apache.axiom.om.OMElement elem,
AxisCallback callback) for an asynchronous request.
> The documentation states that the onComplete() method in the passed AxisCallback instance
 "is called at the end of the MEP no matter what happens, quite like a finally block." 
> This is not the case. onComplete() does not get executed. If onComplete doesn't get called,
what should I be relying upon to know that a call has finished execution?

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