Haha, ok. I was looking at the code in AxisEngine.java and the Phase code as well, and maybe there is a way to do this without code changes. If I declare a Post-Dispatch phase, without specifying the class attribute, it will be a default Phase that does nothing. Then if I implement my own "CleanUp" handler that does nothing except do the cleanup in the flowComplete(...) method, then the AxisEngine will call the flowComplete on the handlers after the message has been sent.
The only problem is if the user decides that he wants to use the transport non blocking flag, then the flowComplete would be called technically without actually having finished sending the document over. Hmm... Roshan Punnoose Phone: 301-497-6039 -----Original Message----- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 5:43 PM To: axis-user@ws.apache.org Subject: Re: Web Service sent hook Roshan, Looks like you have a case for a enhancement bug in JIRA :) -- dims On 2/28/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote: > Thanks for the reply. I was able to override the > CommonsHttpTransportSender to perform my logic after the response had > been sent. The only problem is, I had to make sure that I could tell > when it was an actual response to a request. But nothing to check in. > > Also, why is it not possible? Wouldn't it be as easy as creating > Dispatch handlers? Just have post-dispatch handlers? > > Roshan Punnoose > Phone: 301-497-6039 > > -----Original Message----- > From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 28, 2007 9:27 AM > To: axis-user@ws.apache.org > Subject: Re: Web Service sent hook > > AFAIK this is not possible... > > ~Thilina > > On 2/22/07, Punnoose, Roshan <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Well from looking at the code, I don't think it is implemented. > > > > > > > > After the AxisEngine.send function there is no call to invoke any > > post-dispatch handlers. Though, it would be pretty easy to implement. > Is > > that something I could do and submit a patch? > > > > > > > > > > Roshan Punnoose > > > > Phone: 301-497-6039 > > > > ________________________________ > > > > > > From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] > > Sent: Monday, February 19, 2007 1:13 PM > > To: axis-user@ws.apache.org > > Subject: RE: Web Service sent hook > > > > > > > > > > Does anyone know if this is possible? > > > > > > > > > > Roshan Punnoose > > > > Phone: 301-497-6039 > > > > ________________________________ > > > > > > From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 15, 2007 11:11 AM > > To: axis-user@ws.apache.org > > Subject: Web Service sent hook > > > > > > > > I see that there are handlers/hooks when a request comes in and a > response > > leaves a Web Service. But is there a way I can get a hook into the > moment > > when the response has been completely sent from the Web Service. We > are > > sending a file using MTOM and DataHandlers back to a client, and I > want to > > delete the file when the file has been sent, but not when there has > been an > > error in transmission. Any ideas? > > > > > > > > Roshan Punnoose > > > > Phone: 301-497-6039 > > > > > > > -- > Thilina Gunarathne > WSO2, Inc.; http://www.wso2.com/ > Home page: http://webservices.apache.org/~thilina/ > Blog: http://thilinag.blogspot.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]