Foo = new://Container?type=CMP_ENTITY
Containers and Resources
Containers
CMP_ENTITY
Declarable in tomee.xml via
Declarable in properties via:
Supports the following properties:
| Property Name | Description |
|---|---|
CmpEngineFactory |
Default value is |
TransactionManager |
Transaction manager used by the container. |
BMP_ENTITY
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Container?type=BMP_ENTITY
Supports the following properties:
| Property Name | Description |
|---|---|
PoolSize |
Specifies the size of the bean pools for this BMP entity container.
Default value is |
STATELESS
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Container?type=STATELESS
Supports the following properties:
| Property Name | Description |
|---|---|
TimeOut |
Specifies the time to wait between invocations, in milliseconds.
A value of |
PoolSize |
Specifies the size of the bean pools for this stateless SessionBean container.
Default value is |
StrictPooling |
Controls behavior when the pool reaches its maximum size.
If |
STATEFUL
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Container?type=STATEFUL
Supports the following properties:
| Property Name | Description |
|---|---|
Passivator |
Responsible for writing beans to disk during passivation.
Known implementations:
|
TimeOut |
Specifies the time to wait between invocations, in minutes.
A value of |
PoolSize |
Specifies the size of the bean pools for this stateful SessionBean container.
Default value is |
BulkPassivate |
Number of instances to passivate at one time during bulk passivation.
Default value is |
MESSAGE
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Container?type=MESSAGE
Supports the following properties:
| Property Name | Description |
|---|---|
ResourceAdapter |
Resource adapter that delivers messages to the container. Default value is Default JMS Resource Adapter. |
MessageListenerInterface |
Message listener interface handled by this container.
Default value is |
ActivationSpecClass |
Activation specification class.
Default value is |
InstanceLimit |
Maximum number of bean instances allowed per MDB deployment.
Default value is |
Resources
javax.sql.DataSource
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Resource?type=javax.sql.DataSource
Supports the following properties:
| Property Name | Description |
|---|---|
JtaManaged |
Determines whether the datasource is JTA managed.
Default value is |
JdbcDriver |
JDBC driver class name.
Default value is |
JdbcUrl |
JDBC URL for creating connections.
Default value is |
UserName |
Default username.
Default value is |
Password |
Default password. |
ConnectionProperties |
Properties passed to the JDBC driver when creating connections.
Format: |
DefaultAutoCommit |
Default auto-commit state of new connections.
Default value is |
DefaultReadOnly |
Default read-only state of new connections.
If not set, |
DefaultTransactionIsolation |
Default transaction isolation level.
Allowed values: |
InitialSize |
Initial number of connections created when the pool starts.
Default value is |
MaxActive |
Maximum number of active connections.
Default value is |
MaxIdle |
Maximum number of idle connections.
Default value is |
MinIdle |
Minimum number of idle connections.
Default value is |
MaxWait |
Maximum wait time (ms) for a connection before throwing an exception.
Default value is |
ValidationQuery |
SQL query used to validate connections. |
TestOnBorrow |
Validate connections before borrowing.
Default value is |
TestOnReturn |
Validate connections before returning to the pool.
Default value is |
TestWhileIdle |
Validate connections during idle eviction runs.
Default value is |
TimeBetweenEvictionRunsMillis |
Time between idle eviction runs (ms).
Default value is |
NumTestsPerEvictionRun |
Number of connections tested per eviction run.
Default value is |
MinEvictableIdleTimeMillis |
Minimum idle time before eviction.
Default value is |
PoolPreparedStatements |
Enables pooling of prepared statements.
Default value is |
MaxOpenPreparedStatements |
Maximum open prepared statements.
Default value is |
AccessToUnderlyingConnectionAllowed |
Allows access to the raw JDBC connection.
Default value is |
ActiveMQResourceAdapter
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Resource?type=ActiveMQResourceAdapter
Supports the following properties:
| Property Name | Description |
|---|---|
BrokerXmlConfig |
Broker configuration.
Default value is |
ServerUrl |
Broker address.
Default value is |
DataSource |
Datasource for message persistence. Default value is Default Unmanaged JDBC Database. |
jakarta.jms.ConnectionFactory
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Resource?type=jakarta.jms.ConnectionFactory
Supports the following properties:
| Property Name | Description |
|---|---|
ResourceAdapter |
Default value is Default JMS Resource Adapter. |
TransactionSupport |
Transaction support type: |
PoolMaxSize |
Maximum number of physical connections.
Default value is |
PoolMinSize |
Minimum number of physical connections.
Default value is |
ConnectionMaxWaitMilliseconds |
Maximum time to wait for a connection.
Default value is |
ConnectionMaxIdleMinutes |
Maximum idle time before reclaiming a connection.
Default value is |
jakarta.jms.Queue
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Resource?type=jakarta.jms.Queue
Supports the following properties:
| Property Name | Description |
|---|---|
destination |
Name of the queue. |
jakarta.jms.Topic
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Resource?type=jakarta.jms.Topic
Supports the following properties:
| Property Name | Description |
|---|---|
destination |
Name of the topic. |
jakarta.mail.Session
Declarable in tomee.xml via
Declarable in properties via:
Foo = new://Resource?type=jakarta.mail.Session
No properties.