• 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

Keep-Alive Header and Web Services

 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I have got the below question.

When invoking a web service in J2EE, in any of the ways mentioned below :

  • SAAJ API - SOAPConnection.invoke
  • Dispatcher Interfaces
  • SEI - Generated by tools such as wsimport


  • My question is, can I make many web service invocations utilizing the same socket connection, without having to open and close a Socket a connection every time I invoke a web service. If I am to call the web service directly using the standard socket APIs, I would add a header which is
    [Connection: Keep-Alive] so to keep the connection opened and to be used later on.

    This is applicable in the various web service APIs mentioned in the list below that are available in the J2EE.

    Many thanks in advance.
     
    This looks like a job for .... legal tender! It says so right in this tiny ad:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic