Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7659169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:17:51+00:00 2026-05-31T13:17:51+00:00

I have recently been asked to configure CXF to the same parameters as our

  • 0

I have recently been asked to configure CXF to the same parameters as our older XFire service.

One of those parameters was Keep-Alive: timeout=60, max=20.
However, I did some research and it appears that CXF uses the JVM HttpURLConnection object under the hood. From what I see, there has been some attempts to provide configuration for it but nothing has been commited for now.

I would prefer not to change the http.maxConnections parameter as it would impact all the server instead of the CXF web services only.

I found this interresting forum thread talking about it where Daniel Kulp says:

BTW: there is a way to control the connection pooling, but it’s a
SERVER side thing. Basically, if the server sends back a header of:

Keep-Alive: timeout=60, max=5

then the Java client will respect those values. Right now in CXF,
you would probably need to write an interceptor to set those values.
I just made a commit to trunk that expands the http configuration to
include a setting to control this from the config file.

I could write an interceptor that modify the headers to do so. However my question is: How will the server react to this kind of change? Would not that be a problem if the server expects 5 connections max and the client performs more ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:17:51+00:00Added an answer on May 31, 2026 at 1:17 pm

    According to what I read here, the keep-alive parameters can be controller either by system properties or directly in the HTTP headers:

    The support for HTTP keep-Alive is done transparently. However, it can
    be controlled by system properties http.keepAlive, and
    http.maxConnections, as well as by HTTP/1.1 specified request and
    response headers
    .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently been asked to estimate a piece of work which will provide
Recently I have been asked an interview question What are the events order in
I have been recently (and repeatedly) asked by customers about MIPS needed to run
I have just started C very recently and I have been asked to answer
I have recently been web-researching quantum computing. Will we see these in our lifetimes
I have recently been introduced to EasyMock and have been asked to develop some
I have been asked recently in a job interview to develop an algorithm that
Recently, I have been asked a question in an interview what's the difference between
I have recently been receiving the following error whenever I am asked to supply
I have recently been asked to help put together an Android App, mostly UI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.