Versions Compared

Key

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

The Custom datasource type Creating custom datasources allows you to define your own datasource implementation. Alternatively, you can simply create datasources using the default RDBMS configuration provided in WSO2 products.

Table of Contents
maxLevel3
minLevel3
 

About custom datasources

There are two options for writing a custom datasource, and these two options cover most of the common business use cases as follows:

...

Info
titleSamples
  • InMemoryDSSample is a sample data service (shipped with DSS by default), which contains both datasource implementations (InMemoryDataSource and EchoDataSource) explained above. See a demonstration of this sample here.
  • Also, you can find a sample configuration file containing the InMemoryDSSample in the  <PRODUCT_HOME>\repository\conf\datasources\custom-datasources.xml file.

Creating custom datasources

You can create custom data sources as shown below.

...