3

I created a RESTfule webservice using Jersey2.0 API, which can produce and consume json MediaType.

@Path( "/PortfolioSummary" )

public class RESTWSService    
{

    public RESTWSService()
    {

    }

    @POST
    @Consumes( { MediaType.APPLICATION_JSON } )
    @Produces( { MediaType.APPLICATION_JSON } )
    public String getportfolioSummary( String req )
    {
         ----
    }
}

When I deploy the service or invoke the service, temp file like MIME43756487865.tmp is created in my AppData/local/Temp folder.

How to avoid this MIME****.tmp file creation in /Temp folder?

arturhoo
  • 2,492
  • 1
  • 21
  • 22
  • See https://www.java.net/forum/topic/glassfish/metro-and-jaxb/mtom-and-temporary-files and https://java.net/jira/browse/MIMEPULL-2 and https://java.net/jira/browse/JERSEY-2515 – Optional Jun 24 '15 at 11:41
  • Hi., Thanks., in of the links it is mentioned as Jersy1.19 has resolved in this issue., I tried using Jersy1.19 jars, still those MIME***.tmp file generated and getting deleted. Kindly help me to resolve this. – Manoranjitham G Jun 25 '15 at 05:25
  • Please try with latest Jersy 2.18 – Suseendran P Jun 25 '15 at 17:45
  • I have the same problem now. How to avoid these files. Ours is a huge application and upgrading to latest version is not an option for us. – Aditya Oct 31 '17 at 16:17
  • 1
    Probably this may help you: https://stackoverflow.com/questions/6301973/multipart-file-upload-on-google-appengine-using-jersey-1-7 – Алексей Виноградов Mar 24 '22 at 06:15

0 Answers0