title: Multithreading in websphere
body: <p>I have a Multithreading application, so I implemented <code>ExecutorService</code> with a Pool Size of 5 Threads</p>
  
  <pre><code>public class SimpleThreadPool {    
      public static void main(String[] args) {
          ExecutorService executor = Executors.newFixedThreadPool(5);
          for (int i = 0; i &lt; 10; i++) {
            Runnable worker = new WorkerThread("" + i);
            executor.execute(worker);
          }
          executor.shutdown();
          while (!executor.isTerminated()) {
          }
          System.out.println("Finished all threads");
      }
  }
  </code></pre>
  
  <p>The application will be deployed in Websphere Web server in with settings contain a Thread Pool configuration :  Application servers >  > Thread Pools > Default, the Maximum Size is set to 60.</p>
  
  <p>My question is, which Pool size configuration is taken, does the configuration in Websphere override the one in the code(5 threads) ?</p>