This is the WSO2 Data Services Server documentation version 2.6.3

JNDI Data Sources

First, we need to create a 'JNDI' typed carbon data source using the instructions given in Adding a Data Source page in the Console Configuration section. Once a JNDI-typed data source is created, follow the instructions below to create a data service using that.

Make sure that the JDBC driver is copied to:

  • DSS_HOME/repository/components/lib directory
  • DSS_HOME/repository/components/dropins

For example, cp mysql-connector-java-5.XX-bin.jar /home/user/wso2ds/wso2-dataservices-XX/repository/components/lib.

1. Log on to the Data Services Server Management Console.

2. Click the "Main" tab and select the "Create" link under "Data Services."

3. The "Create Data Service" page appears. Fill in the fields and click "Next." The Data Service name is mandatory.

Info:
For more information on Advanced Configurations in creating data services, refer to the Transaction Handling section.

4. The "Data Sources" page appears. Click on the "Add New Data Source" link and add your Data Source details. Then click "Save."

For a JNDI data source, select the data source type as JNDI Datasource and enter the values that were used to connect to the JNDI-enabled data source created earlier. For example,

5. After saving, the added data source page appears. You can edit or delete the Data Source.

To proceed click "Next."

6. You can continue to add Queries, Operations and Resources. Once the Data Service configuration is done, click "Finish."

7. You will be navigated to the "Deployed services" page.

From here, you can manage your service.