Hitachi

uCosminexus Application Server Expansion Guide


2.6 Overview of resource connections and transaction management

In a batch application, you can connect to a database by extending processing. To connect to a database from a batch application, you deploy and use a resource adapter, corresponding to the resources to be connected. DB Connector that is the resource adapter used for connecting to a database is provided with Application Server.

With Application Server, the connection pooling and the transaction management functionality are provided for accessing these resources efficiently and reliably. When using the connection pooling, you can perform pooling of connections for resources and use the connections efficiently. Properly remove the connections, in which failure occurs, from the connection pool. When using the transaction management functionality, transaction manager properly controls transactions of resource access, on the basis of transaction attributes specified for each method and instructions by JTA interface (UserTransaction).

You cannot use global transactions in a batch application.

The following figure shows an example of connecting to resources by using the connection pooling and the transaction management functionality.

Figure 2‒11: Example of connecting to resources by using connection pooling and transaction management functionality

[Figure]

For details on how to create a batch application to be connected to resources, see 2.3.8 Implementing a batch application (When connecting to resources).