Cloud CM-IPMP Guía para resolver problemas Pagina 123

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 201
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 122
Each <
parameter
> element contains a mandatory <
param-name
>, <
param-type
> and <
param-value
> element. These
three elements identify the name of the JavaBean property, the Java type for the property, and the value to set the JavaBean
property to respectively.
Rhino requires that there must be one <
jdbc
> element that has a <
jndi-name
> element of
ManagementResource
. This is
the database that is used by Rhino to store state related to the management of the Rhino installation
2
.
Rhino SLEE treats distinct <
jdbc
> elements as different database managers. Therefore even if two <
jdbc
> elements
correspond to the same database manager and are used in the same transaction, they will be treated as multiple resource
managers.
19.2.1 Connection Pooling
JDBC 2.0 with standard extensions provides two mechanisms for obtaining connections to the database.
The
javax.sql.DataSource
interface that provides unmanaged physical connections.
The
javax.sql.ConnectionPoolDataSource
interface that provides managed physical connections.
To connect to a connection pooling data source a managed
ConnectionPoolDataSource
connection is required.
Each <
jdbc
> element may optionally contain a <
connection-pool
> element. If a <
connection-pool
> element is speci-
fied, and the class file corresponding to the <
datasource-class
> element is an implementation of
javax.sql.DataSource
Rhino will automatically use an internal implementation of
ConnectionPoolDataSource
to create managed connections. If
a <
connection-pool
> element is specified, and the class file corresponding to the <
datasource-class
> element is an
implementation of the
javax.sql.ConnectionPoolDataSource
interface Rhino will use the managed connections obtained
from the ConnectionPoolDataSource provided by the <
datasource-class
>.
The <
connection-pool
> element contains the mandatory elements.
<
max-connections
> The <
max-connections
> element specifies the maximum number of active connections in use
by a Rhino process at any particular point in time. the connection pool.
<
max-pool-size
> The <
max-pool-size
> element specifies the maximum number of active and inactive connections
that are included in
<
max-idle-time
>
<
idle-check-interval
> The <
idle-check-interval
> element specifies the time in seconds that it takes for an ac-
tive connection to be considered inactive after being returned to the pool, that is how long after an application component
has finished using the connection before Rhino considers the connection inactive.
19.3 Configuration Example
The following XML fragment contains an example <
jdbc
> element. It can be seen that this example defines a JNDI name, a
datasource-class,parameters and a connection pool.
2
The PostgreSQL database must be used as the ManagementResource for the Rhino SLEE
Open Cloud Rhino 1.4.3 Administration Manual v1.1 114
Vista de pagina 122
1 2 ... 118 119 120 121 122 123 124 125 126 127 128 ... 200 201

Comentarios a estos manuales

Sin comentarios