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 8226475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:47:04+00:00 2026-06-07T15:47:04+00:00

I have an application running in a Java EE App Server and it needs

  • 0

I have an application running in a Java EE App Server and it needs to call a web service of a partner company.

Using wsimport.exe from my JDK (1.6) I have generated the client classes. I instantiate the service and get the port in order to call the web service.

I noticed that the first call to the web service is slow, and I am led to believe this is because it is validating the WSDL. Subsequent calls are fast.

I could keep the WSDL locally, and apparently that will speed up the first call.

In order to optimise my app, I was thinking I could create a pool of the clients. This has the added advantage that I have some throttling in the app – lets say I have a pool of 5 clients, then at most I will be using memory for 5 clients. If the load increased suddenly on my server, I don’t have to worry that an unlimited number of clients would cause an out of memory error. I am assuming, based on past experience, that the web service clients use a lot of memory…

  • Would you bother with a pool?
  • How would you get over the first call to the web service being slow?
  • What is the best way to create that pool, so that I have to do the least amount of programming (i.e. I’d like to use a library / API / whatever, so that I don’t have to reinvent the wheel and code some hairy bugs).
  • 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-06-07T15:47:05+00:00Added an answer on June 7, 2026 at 3:47 pm

    The Apache Commons Pool might be exactly what I am after.

    It is configurable and seems to have thought of everything.

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

Sidebar

Related Questions

We have a Java EE-based web application running on a Glassfish app server cluster.
We have a Java web application (app #1) running under Tomcat. Our requirement: We
We have an application running Sun Glassfish app server with Java (JAXRS if it
I have a Java application which is running as non root mode. My App
We have an application running on Tomcat 6.0.32 and using JSSE (Java 1.6.0_26) for
We have a java application which run as server running on a remote windows
I have made an application using Java/Hibernate/MySQL, but whenever I try running it, it
I have a new tomcat application server running on tomcat 6, java 6 (openjdk),
We have several java application server running here, with several apps. They all log
We have a Java web application running on JBoss and Linux. Production environment database

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.