com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.
Datasource Configuration Definitions
The following sections explain the datasource configurations that are available in ES:
Sample configuration
<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> <providers> <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> </providers> <datasources> <datasource> <name>WSO2_CARBON_DB</name> <description>The datasource used for registry and user manager</description> <jndiConfig> <name>jdbc/WSO2CarbonDB</name> </jndiConfig> <definition type="RDBMS"> <configuration> <url>jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE</url> <username>wso2carbon</username> <password>wso2carbon</password> <driverClassName>org.h2.Driver</driverClassName> <maxActive>50</maxActive> <maxWait>60000</maxWait> <testOnBorrow>true</testOnBorrow> <validationQuery>SELECT 1</validationQuery> <validationInterval>30000</validationInterval> </configuration> </definition> </datasource> </datasources> </datasources-configuration>
XML definitions
The following table explains the XML definitions related to datasource configurations.
Click on the table and use the left and right arrow keys to scroll horizontally.Â
XML Element | Description | Data Type | Default Value | Mandatory/ Optional |
---|---|---|---|---|
datasources-configuration | The root element. The namespace is specified as: xmlns:svns="http://org.wso2.securevault/configuration" | Â | Â | Mandatory |
providers | The container element for the datasource providers. | Â | Â | Mandatory |
| The datasource provider, which should implement org.wso2.carbon.ndatasource.common . The datasources follow a pluggable model in providing datasource type implementations using this approach. | Fully qualified Java class | Â | Optional |
datasources | The container element for the datasources. | Â | Â | Mandatory |
datasource | The root element of a datasource. | Â | Â | Mandatory |
name | Name of the datasource. | String | Â | Mandatory |
description | Description of the datasource. | String | Â | Optional |
jndiConfig | The container element that allows you to expose this datasource as a JNDI datasource. | Â | Â | Optional |
name | The JNDI resource name to which this datasource will be bound. | String | Â | Mandatory if specifying JNDI configuration |
definition | The container element for the data source definition. Set the type attribute to RDBMS, or to custom if you're creating a custom type. The "RDBMS" data source reader expects a "configuration" element with the sub-elements listed below. | String | Â | Mandatory |
configuration | The container element for the RDBMS properties. | Â | Â | Mandatory if definition type is RDBMS |
url | The connection URL to pass to the JDBC driver to establish the connection. | URL | Â | Mandatory |
username | The connection user name to pass to the JDBC driver to establish the connection. | String | Â | Optional |
password | The connection password to pass to the JDBC driver to establish the connection. | String | Â | Optional |
driverClassName | The class name of the JDBC driver to use. If you are using another DB (e.g., if you are using MySQL instead of H2), you need to update this element. | Fully qualified Java class | Â | Mandatory |
maxActive | The maximum number of active connections that can be allocated from this pool at the same time. | Integer | 50 | Optional |
maxWait | Maximum number of milliseconds that the pool waits (when there are no available connections) for a connection to be returned before throwing an exception. | Integer | 60000 (60 seconds) | Optional |
testOnBorrow | Specifies whether objects will be validated before being borrowed from the pool. If the object fails to validate, it will be dropped from the pool, and we will attempt to borrow another. When set to true, the validationQuery parameter must be set to a non-null string. | Boolean | true | Optional |
validationQuery | The SQL query used to validate connections from this pool before returning them to the caller. If specified, this query does not have to return any data, it just can't throw a SQLException. The default value is null. Example values are SELECT 1 (mysql), SELECT 1 FROM DUAL (Oracle), SELECT 1 (MS SQL Server). | String | SELECT 1 | Mandatory when testOnBorrow is set to true |
validationInterval | To avoid excess validation, only run validation at most at this frequency (interval time in milliseconds). If a connection is due for validation, but has been validated previously within this interval, it will not be validated again. The default value is 30000 (30 seconds). | Long | 30000 (30 seconds) | Optional |
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.