[ 
https://issues.apache.org/jira/browse/AXIOM-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080568#comment-13080568
 ] 

Hudson commented on AXIOM-377:
------------------------------

Integrated in ws-axiom-trunk #490 (See 
[https://builds.apache.org/job/ws-axiom-trunk/490/])
    AXIOM-377 (step 2): Reversed the DataHandler creation logic. In 1.2.12, the 
DataHandler is created by PartOnFile/PartOnMemory, i.e. after the MIME part 
content has been buffered. If we want to support streaming, then the 
DataHandler must be created before we decide whether the content is streamed or 
buffered and how it is buffered. Note that this implies that we now always 
create a DataHandler implementing DataHandlerExt. For memory buffered parts, 
the purgeDataSource method will simply release the allocated memory.

veithen : 
Files : 
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/MIMEMessage.java
* /webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/ContentOnMemory.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartDataSource.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartDataHandler.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/PartOnFileTest.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/ContentOnFile.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Part.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/PartImpl.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/ContentStoreFactory.java
* 
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/ContentStore.java


> When a multipart message is built, there should be a way to retrieve a 
> DataHandler to the MTOM part without reading the entire incoming stream
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIOM-377
>                 URL: https://issues.apache.org/jira/browse/AXIOM-377
>             Project: Axiom
>          Issue Type: New Feature
>            Reporter: Sadeep Jayasumana
>            Assignee: Andreas Veithen
>         Attachments: AXIOM-377.patch
>
>
> This feature is particularly useful when large attachments are used. Building 
> large attachments in memory drives the system OOM and building them on files 
> dramatically reduces performance.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to