Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 22523 invoked from network); 6 Jan 2011 10:52:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 10:52:08 -0000 Received: (qmail 68861 invoked by uid 500); 6 Jan 2011 10:52:07 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 68546 invoked by uid 500); 6 Jan 2011 10:52:07 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 68532 invoked by uid 99); 6 Jan 2011 10:52:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 10:52:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 10:52:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p06ApjMA019174 for ; Thu, 6 Jan 2011 10:51:45 GMT Message-ID: <26411649.185131294311105860.JavaMail.jira@thor> Date: Thu, 6 Jan 2011 05:51:45 -0500 (EST) From: "Afkham Azeez (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Reopened: (AXIS2-3268) AxisCallback interface: add isComplete() method (if possible, add a default implementation class in the same package) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Afkham Azeez reopened AXIS2-3268: --------------------------------- > AxisCallback interface: add isComplete() method (if possible, add a default implementation class in the same package) > --------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-3268 > URL: https://issues.apache.org/jira/browse/AXIS2-3268 > Project: Axis2 > Issue Type: Wish > Components: kernel > Affects Versions: 1.3 > Reporter: Huitang Li > Assignee: Deepal Jayasinghe > Priority: Minor > > Here is the communication in axis-users mailing list for this issue. Also, if possible, please create a default Implementation class as well so that the users do not need to implement every method in the interface if they choose not to. Thanks. > Deepal, > I agree that an isComplete method is convinient, but it can be easily added as I have shown in the example. > So it's not a major issue. > Perhaps if we document the behaviour properly we don't really need to add that method in a hurry. > But I also agree that for the sake of backward compatibility it is good to add that method. > It will also allow an easy migration path to the users. > Regards, > Rajith > On 10/8/07, Deepal Jayasinghe wrote: > Hi Huitang , > Yes I also agree with you that is one of the missing API in the > AxisCallback , and even I have found it difficult without that. So > please create a JIRA I am more than happy to fix that , though it is > going to be a API changes. > Thanks > Deepal > > Hi, > > > > I created a web service client following Async/One Channel model using > > axis2-generated stub. In the stub code, AxisCallback interface is used. > > > > For almost all tests, no soap message response is received before the > > client is finished. This is verified with the help of the excellent > > tool tcpmon. > > > > In AxisCallback, I did not see something like isComplete() to test > > whether a whole message is retrieved or not. So I had to replace the > > AxisCallback with the depreciated Callback, and then put the following > > code in the stub. > > > > while (!callback.isComplete()) { > > Thread.sleep(1000); > > } > > > > Does anyone have a better solution without having to use the > > deprecated API? > > > > Thanks. > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org