Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 99614 invoked from network); 13 May 2008 13:50:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 13:50:34 -0000 Received: (qmail 14087 invoked by uid 500); 13 May 2008 13:50:36 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 14073 invoked by uid 500); 13 May 2008 13:50:36 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 14062 invoked by uid 99); 13 May 2008 13:50:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 06:50:35 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 May 2008 13:49:43 +0000 Received: (qmail 55126 invoked from network); 13 May 2008 13:50:00 -0000 Received: from unknown (HELO ?192.168.0.65?) (unknown) by unknown with SMTP; 13 May 2008 13:50:00 -0000 X-pair-Authenticated: 207.47.37.7 Message-ID: <48299C8C.8090802@wso2.com> Date: Tue, 13 May 2008 19:50:04 +0600 From: Samisa Abeysinghe User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Apache AXIS C Developers List Subject: Re: Caching support for MTOM References: <1210335952.6522.14.camel@manjula> <4824F4F4.8090103@wso2.com> <1210585071.6245.12.camel@manjula> <4828B115.1000708@wso2.com> <1210655022.6185.25.camel@manjula> In-Reply-To: <1210655022.6185.25.camel@manjula> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Manjula Peiris wrote: > Hi Samisa, > > Sorry for not describing those functions. Ideally when a user will > provide a callback function and a callback_ctx in which the necessary > information is kept in between caching. For example when we are writing > to a file we open the file only once and keep on appending when we call > the callback function. So the file handler should be kept inside this > callback_ctx. Since the current implementation is yet to provide this > callback functionality, for the time being I have put the caching > function inside mime_parser. So if any one is interested now he can keep > those function headers and just replace the implementation with his > caching logic. I also changed the caching function name to > axis2_caching_callback . Following is a description of what each > function do. > > Manjula, thanks for the explanation. I was wondering how this model would apply to a situation where I want to write the stuff to a database. > init_handler - This will create a caching source and return a void* to > that. > Ope DB connection > axis2_caching_callback - This will do the caching using the created > source above. > Keep writing the blob to DB > close_handler - This will close the caching source. > Close DB connection WDYT? Thanks, Samisa... > In the current implementation I have wrapped fopen, fwrite and fclose > with the above 3 functions. > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org