Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Data source management capability is provided by the following feature in the WSO2 feature repository:

Name: WSO2 Carbon - Datasource Management Feature
Identifier: org.wso2.carbon.datasource.feature.group

If data source management capability is not included in your product by default, you can add it by installing the above feature using the instructions given in section, Feature Management.

A Data Source can be added with InMemory configuration or with JNDI. Follow the instructions below to add a new Data Source to a running Carbon instance.

1. Log on to the product's management console and select "Data Sources."

2. Click on the "Add Data Source" link in the "Data Sources" page.

3. Specify the required options in the "New Data Source" page.

Info
titleNote

The meaning of many fields is similar to the DBCPconfiguration guide, to which you can refer for more information: http://commons.apache.org/dbcp/configuration.html

  • Data Source Type - There are two types available. The default is 'RDBMS'. 'Custom' is the other. 
  •  Name - Name of the data source (This value should be unique.)
  • Data Source Provider -
  • Driver - The JDBC driver to be used.
  • URL - The connection URL to be passed to the JDBC driver to establish a connection.
  • User Name - The connection user name to be passed to the JDBC driver to establish a connection.
  • Password - The connection password to be passed to the JDBC driver to establish a connection.
  •  Expose as a JNDI Data Source
  • Data Source Configuration Parameters

The meaning of many fields is similar to the DBCPconfiguration guide, to which you can refer for more information: http://commons.apache.org/dbcp/configuration.html

JNDI Data Source
Anchor
jndi
jndi

Special options of the JNDI configuration:

  • IC Factory - Initial context factory of the JNDI.
  • Provider Port - If specified, it will be used to create a JNDI provider URL internally.
  • Provider URL - The URL of the JNDI provider. It is assumed that this URL exists and is accessible.

For example,

4. Click on the "Add" button to create the new Data Source.

5. The new Data Source appears in the "Data Sources" list.

From here you can edit and delete Data Sources.