A datasource provides information that a server can use to connect to a database or to an external data store. The topics given below explains explain the ways in which new datasources can be created and edited in WSO2 products.
Info | ||
---|---|---|
| ||
Datasources created using the management console as explained below can later be used for defining data services. When defining data services, you also have the option of using the common datasources such as Excel, CSV etc., in addition to RDBMS and custom datasource. See the documentation on generating data services using a given database structure and creating data services using various datasources for more information. |
Table of Contents | ||||
---|---|---|---|---|
|
Creating datasources using the management console
...
If this feature is not included in your product by default, you can install it using the Feature Management section of this documentation. With this feature, you can add any RDBMS datasource or your own custom datasources using the management console, which can later be edited or deleted for your product instance if required. Note that all datasources created using the management console are saved to the registry of your product. The steps for creating datasources are discussed in the following topics:
...
Child pages (Children Display)
...
...
Datasources created and saved to the registry can later be used for defining data services. See the documentation on generating data services using a given database structure and creating data services using various datasources for more information.
Creating datasources using configuration files
...
You can also edit and delete the datasources that are saved in the registry (i.e. datasources created using the management console). However, you cannot edit or delete the datasources that are added using configuration files in the <PRODUCT_HOME>/repository/conf/datasources/
directory using the management console. For example, to modify the default <WSO2_CARBON_DB>
datasource, you have to change the master-datasources.xml
file.