DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21123>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21123

Axis Temp File(s) for AttachmentPart

           Summary: Axis Temp File(s) for AttachmentPart
           Product: Axis
           Version: 1.1
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Documentation
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Hello,
 
Acturally what I'm reporting here is more like QA thing rather than a bug. I 
have the following problem and I'm hoping someone can help me with,
 
I'm using Axis to extract individual MIME part out from a MIME Multipart file 
and noticed that for each org.apache.axis.attachments.AttachmentPart, which 
represents a MIME part, there's a temp file get generated if the MIME part 
exceed the threshold defined in 
org.apache.axis.attachments.ManagedMemoryDataSource.  Here're my questions:
 
1) How or where does Axis know that it should write the temp files, which has 
naming schema such as "Axis10207axis", to my local home directory C:\DOCUME~1
\kdo\LOCALS~1\Temp\Axis10207axis? 
 
I've been browsing Axis documentation and noticed that both 
org.apache.axis.server.DefaultAxisServerFactory and 
org.apache.axis.MessageContext classes use one of the followings to determine 
the directory where the temp files should reside:
a) AxisEngine.PROP_ATTACHMENT_DIR or
b) AxisEngine.ENV_ATTACHMENT_DIR or
c) AxisEngine.ENV_SERVLET_REALPATH
 
I also noticed the Global Axis Configuration section in the "Axis Reference 
Guide", it talks about what global configuration settings are supported or can 
be added to server-config.wsdd file which is packed with axis.jar.  However, 
when I viewed the server-config.wsdd file, I didn't see any entry for 
attachments.Directory.  So how does Axis determine to write the temp files to 
C:\DOCUME~1\kdo\LOCALS~1\Temp\ directory?
 
2) If I want Axis to store/write the temp files to a specific directory rather 
than my local home directory, how can I do that?  Is it the AxisProperties 
class, which I can call setProperty() method passing 
AxisEngine.PROP_ATTACHMENT_DIR as the property name and whichever directory I 
want (ie. c:\temp\attachments\) as its value?
 
3) Is there any way for me to notify Axis to remove the temp files, once I've 
done using it?
 
Thank you in advance for your time.
 
KThanh

Reply via email to