You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "R.O. (JIRA)" <ji...@apache.org> on 2008/08/12 11:50:44 UTC

[jira] Updated: (CXF-1743) Temporary files are not deleted

     [ https://issues.apache.org/jira/browse/CXF-1743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

R.O. updated CXF-1743:
----------------------

          Component/s: Core
          Description: 
I have endpoint declared in Spring as follows:
---
	<jaxws:endpoint id="importService"
		implementor="my.ImportServiceImpl"
		address="/importService">
		<jaxws:properties>
			<entry key="mtom-enabled" value="true" />
		</jaxws:properties>
	</jaxws:endpoint>

---

I've analysed sources of org.apache.cxf.attachment.AttachmentDataSource and org.apache.cxf.io.CachedOutputStream and discovered that AttachmentDataSource does not allow to close cache. 
The only solution is to add closeCache() method to AttachmentDataSource and close cache manually.
During tests I discovered, that large attachments (>64k), which are saved in temporary files, are not removed after processing SOAP message.







  was:
I have endpoint declared in Spring as follows:
---
	<jaxws:endpoint id="importService"
		implementor="my.ImportServiceImpl"
		address="/importService">
		<jaxws:properties>
			<entry key="mtom-enabled" value="true" />
		</jaxws:properties>
	</jaxws:endpoint>

---

During tests I discovered, that large attachments (>64k), which are saved in temporary files, are not removed after processing SOAP message.







    Affects Version/s: 2.1.2

> Temporary files are not deleted
> -------------------------------
>
>                 Key: CXF-1743
>                 URL: https://issues.apache.org/jira/browse/CXF-1743
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.1, 2.1.2
>         Environment: Linux, FreeBSD
>            Reporter: R.O.
>
> I have endpoint declared in Spring as follows:
> ---
> 	<jaxws:endpoint id="importService"
> 		implementor="my.ImportServiceImpl"
> 		address="/importService">
> 		<jaxws:properties>
> 			<entry key="mtom-enabled" value="true" />
> 		</jaxws:properties>
> 	</jaxws:endpoint>
> ---
> I've analysed sources of org.apache.cxf.attachment.AttachmentDataSource and org.apache.cxf.io.CachedOutputStream and discovered that AttachmentDataSource does not allow to close cache. 
> The only solution is to add closeCache() method to AttachmentDataSource and close cache manually.
> During tests I discovered, that large attachments (>64k), which are saved in temporary files, are not removed after processing SOAP message.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.