Results 1 to 2 of 2

Thread: Optimize HttpInvoker for transporting large objects over low bandwith http connection

  1. #1
    Join Date
    Oct 2012
    Location
    Antwerp, Belgium
    Posts
    1

    Default Optimize HttpInvoker for transporting large objects over low bandwith http connection

    Hi there, I am currently maintaining a legacy java desktop application which communicates with a Spring server application through HttpInvoker.
    One of the features of the client app is the possibility to upload and store files on the server, which means that sometimes very large objects are transported over http.
    Now there is a problem : some desktop clients are separated from the server by an ocean and network traffic goes over a relatively low bandwith internet connection. This causes frequent timeouts when large objects (like upload files) are transported from client to server.
    I could increase the timeout value, but this would also result in users being belatedly notified of connection problems (or server unavailability).

    I would like to know if there is any way to optimize or improve the communication using standard Spring functionality.
    E.g. dynamically adjust the timeout period for large objects ?

  2. #2
    Join Date
    Apr 2008
    Location
    Seville, Spain
    Posts
    133

    Default

    You can override HttpInvokerServiceExporter.decorateInputStream(Htt pServletRequest request, InputStream is) to add compression.

    Cheers
    Jose Luis Martin
    Freelance Senior Consultant
    JDAL - Java Database Application Library

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •