• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

To keep request alive in a webservice

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have a problem where i am exposing a webservice to a third party.
The request size is very huge around 8MB, so by the time the request gets processed at my server end, the request times out and the response is not able to reach the source.
We have increased the time out settings on Jboss and Apache but we cannot increase it beyond some point.
So is there away the i can send keep alive signal to the source to prevent the request from getting timedout.


Thanks
Gurvinder
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest substituting a series of steps for your existing one huge request because, as you have found, trying to keep a single request live is full of problems.

1. submit huge dataset - reply says OK, got it, job ID is X

2. start processing X - reply says OK started

3. how is X doing? reply says either - still working or DONE

4. retrieve the result of X

This approach has the HUGE advantage of letting the client do other things while waiting for the result, processing can even run overnight.

Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic