Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 28808 invoked from network); 19 Dec 2006 19:04:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 19:04:47 -0000 Received: (qmail 40374 invoked by uid 500); 19 Dec 2006 19:04:44 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 40345 invoked by uid 500); 19 Dec 2006 19:04:44 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 40270 invoked by uid 99); 19 Dec 2006 19:04:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 11:04:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of csethil@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 11:04:33 -0800 Received: by nf-out-0910.google.com with SMTP id o63so2145367nfa for ; Tue, 19 Dec 2006 11:04:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GKQqkMzcTtzrX8aAzHbHbObuU+qEWglp9J3fhQb3g0vmabE8vHfv8PWe1NfrHiQILvqfaFGraOjIbY8CnJGLS5mSHbQEwveWrweXfe0g2c+JSsbgOf8+Tsk0hjqk6oJwFYeHoDNbsrshq4HvEoIPbbFqNXAT0zQ9XxEu/xW+9tg= Received: by 10.48.223.10 with SMTP id v10mr7430030nfg.1166555052080; Tue, 19 Dec 2006 11:04:12 -0800 (PST) Received: by 10.49.67.16 with HTTP; Tue, 19 Dec 2006 11:04:11 -0800 (PST) Message-ID: Date: Wed, 20 Dec 2006 01:04:11 +0600 From: "Thilina Gunarathne" To: axis-user@ws.apache.org Subject: Re: Naming of MTOM cached attachment files In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi, Actually the temp directory is meant for Axis2 internal use. Also only the attachments which are larger than the file size threshold will get stored there... But u can manipulate those files in the following way by adding some code to the business logic.. (Make sure to make the file size threshold 0).. DataHandler dataHandler = (DataHandler)omText.getDataHandler(); // You can check the data source type for added safety FileDataSource fileDataSource = (FileDataSource)dataHandler.getDataSource(); File file = fileDataSource.getFile(); //Rename to your desired file name file.renameTo(new File("MyFile.bin")); Thanks, Thilina On 12/19/06, Brian Bacsu wrote: > > Hi > > I am using the cache feature of Axis2 1.1 for very large MTOM attachments in > a client component. Currently the files are being saved into the defined > temporary directory with a naming format similar to "Axis28105.att, > Axis28106.att, etc. This naming convention makes it very difficult to > identify which file was placed in the temp directory by which user, so that > the file can be retrieved and the temp directory cleaned up. I am wondering > how/where these names are constructed? > > Is there any method to control the naming of the cached file, or to obtain > the name that will be used during the processing of the MTOM response? > > > > Thanks, > > Brian Bacsu > -- Thilina Gunarathne WSO2, Inc.; http://www.wso2.com/ Home page: http://webservices.apache.org/~thilina/ Blog: http://thilinag.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org