The connectionPolicy element of the adapter-descriptor file lets you configure settings for your adapter's SQL connection.
The connectionPolicy element has one attribute:
Mandatory.
The value of this attribute must be set to sql:SQLConnectionPolicy.
Optional
Contains the parameters that are needed to connect to a data source. The adapter creates a connection for each request.
For example:
<connectionPolicy xsi:type="sql:SQLConnectionPolicy">
<dataSourceDefinition>
<driverClass>com.mysql.jdbc.Driver</driverClass>
<url>jdbc:mysql://localhost:3306/mysqldbname</url>
<user>user_name</user>
<password>password</password>
</dataSourceDefinition>
</connectionPolicy>
Optional.
Connect to the data source by using the JNDI name of a data source that is provided by the application server. The adapter takes the connection from the server connection pool that is associated with the JNDI name.
<connectionPolicy xsi:type="sql:SQLConnectionPolicy">
<dataSourceJNDIName>my-adapter-ds</dataSourceJNDIName>
</connectionPolicy>