Class: com.sybase.djc.ant.InstancePoolProperty (Instance Pool Property) | EAServer 6.3 Help |
---|
Description | Configures the idle timeout for pooled EJB instances. Alternatively, specifies that a singleton (shared) instance should be used. |
---|---|
Configuration |
Example:
<setProperties component="ejb.components.example.MyCompRemote"> <instancePool timeout="100"/> ... </setProperties> <setProperties component="ejb.components.example.MySharedCompLocal"> <instancePool singleton="true"/> ... </setProperties> |
Nested Properties | manager, singleton, timeout |
Property: manager (Manager) | |
---|---|
Description |
Each instance pool has an associated pool manager. If the
server's useTransactionLocalPools
property is true, then when a transaction is initiated the
pool manager associated with the initiating component becomes
the "current" pool manager for the duration of the transaction.
Having multiple pool managers can sometimes reduce resource
utilization (database connection pool and component instance
pool sizes), particularly for components that run under their
own thread monitor
with a low value for maximumActiveThreads
Recommendation: modify this setting from "default" only if runtime monitoring indicates that doing so reduces resource utilization. |
Default Value | default |
Property: singleton (Singleton) | |
---|---|
Description |
Specifies that the pool should contain a single shared instance.
If this instance cannot be used concurrently by multiple threads,
you should use the
Synchronized Property
as well.
Portability Note: singleton (shared) instances are are not supported by all EJB implementations. |
Default Value | false |
Legal Values | false, true |