uCosminexus Application Server, Common Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

6.19 Settings in the execution environment

To use Cosminexus JPA Provider, you must specify the J2EE server settings and the DB Connector settings.

Organization of this section
(1) J2EE server settings
(2) DB Connector settings

(1) J2EE server settings

You implement the J2EE server settings with the Easy Setup definition file. Specify the settings for the log files output by Cosminexus JPA Provider in the configuration tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file.

The following table describes the settings in the Easy Setup definition file for the log files output by Cosminexus JPA Provider.

Table 6-27 Settings in the Easy Setup definition file for the log files output by Cosminexus JPA Provider

Specified parameters Settings
ejbserver.logger.channels.define.JPAOperationLogFile.filenum Specify the number of operation log files.
ejbserver.logger.channels.define.JPAMaintenanceLogFile.filenum Specify the number of maintenance log files.
ejbserver.logger.channels.define.JPAOperationLogFile.filesize Specify the size of the operation log.
ejbserver.logger.channels.define.JPAMaintenanceLogFile.filesize Specify the size of the maintenance log.
cosminexus.jpa.logging.level.operation.category Specify the log level of the operation log.

For details on the Easy Setup definition file and the specified parameters, see 4.6 Easy Setup definition file in the uCosminexus Application Server Definition Reference Guide.

(2) DB Connector settings

You implement the DB Connector settings with the server management commands and the HITACHI Connector Property file.

The following table describes the settings in the HITACHI Connector Property file.

Table 6-28 Settings in the HITACHI Connector Property file

Specified tags Settings
<resource-external-property>-<optional-name> tag If the optional name of the resource adapter is used in the data source specification of persistence.xml, the optional name of the resource adapter is set up. If the optional name of the resource adapter is not used in persistence.xml, the settings need not be specified.
<resource-external-property>-<res-auth> tag If the optional name of the resource adapter is used in the data source specification of persistence.xml, make sure you specify Container as the resource authentication method.
<resource-external-property>-<res-sharing-scope> tag If the optional name of the resource adapter is used in the data source specification of persistence.xml, make sure you specify Shareable to specify whether the resource connections will be shared.
<property>-<property-name> tag
<property>-<property-value> tag
Specify the information for connecting to the database.
  • Specifying the user name
    Specify User in the <property-name> tag and the user name to be used for the database connection in the <property-value> tag.
  • Specifying the password
    Specify Password in the property-name tag and the password to be used for the database connection in the property-value tag.
<connection-definition>-<transaction-support> tag Specify the transaction support level. Match the value specified here with the value specified in the transaction-type attribute of the persistence-unit tag in persistence.xml.

For details on the HITACHI Connector Property file and the specified tags, see 4.1 HITACHI Connector Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.