Properties Specific to the EJB Container

The following properties are available for configuring the EJB container. For more information, see http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ThreadPoolExecutor.html.

thread-core-pool-size

Specifies the number of core threads in the EJB container's common thread pool. The default value is 16.

thread-max-pool-size

Specifies the maximum number of threads in the EJB container's common thread pool. The default value is 32.

thread-queue-capacity

Specifies the size of the thread pool queue, which stores new requests if more than thread-core-pool-size threads are running. The default value is the Integer.MAX_VALUE.

thread-keep-alive-seconds

Specifies the time, in seconds, past which threads in excess of thread-core-pool-size are terminated. The default value is 60.

allow-core-thread-timeout

If set to true, all threads, even core threads, are subject to termination after thread-keep-alive-seconds. The default value is false.

prestart-all-core-threads

If set to true, all core threads in the EJB container's common thread pool are started, causing them to idly wait for work. If set to false, threads are not started until new requests arrive. The default value is false.

Copyright © 2005, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices