The RDBMS datasources you define using this option can be added to data services as Carbon datasources. Also, note that when you define a However, during the data service creation process, you also have the option of using the common datasource types (in addition to RDBMS), such as EXCEL, CSV etc. See the topic on creating datasources for a data service.
- Log in to the management console of your product and click Data Sources on the Configure tab. The datasources that are already created will be listed.
- Click Add Data Source to open the following screen:
- Select 'RDBMS' for the Data Source Type field to define an RDBMS configuration.
- Enter values for the remaining fields as explained below.
- Name: Name of the datasource (must be a unique value).
- Data Source Provider: Specify the datasource provider.
- Driver: The class name of the JDBC driver to use.
- URL: The connection URL to pass to the JDBC driver to establish the connection
- User Name: The connection user name to pass to the JDBC driver to establish the connection
- Password: The connection password to pass to the JDBC driver to establish the connection
- Expose as a JNDI Data Souce: Allows you to specify the JNDI data source.
- Data Source Configuration Parameters: Allows you to specify the datasource connection pool parameters when creating an RDBMS datasource
- Be sure to copy the JDBC driver relevant to the database engine to the
<PRODUCT_HOME>/repository/components/libdirectories. For example, if you are using MySQL, you would specify
com.mysql.jdbc.Driveras the driver and would copy
mysql-connector-java-5.XX-bin.jarto these directories. If you do not copy the driver to these directories when you create the datasource, you will get an exception similar to "Cannot load JDBC driver class com.mysql.jdbc.Driver".
- After creating datasources, they appear on the Data Sources page. If required, you can by clicking Edit or Delete.