Finally i found the solution :
System.setProperty("org.apache.cxf.io.CachedOutputStream.OutputDirectory",
"D:\\"); //this worksi dont know why using -/Dproperty / didnt work , at least this will help someone else. Thanks again -- View this message in context: http://cxf.547215.n5.nabble.com/MTOM-Setting-client-temporary-directory-for-MTOM-attachments-in-CXF-tp5708559p5708829.html Sent from the cxf-user mailing list archive at Nabble.com.
