官术网_书友最值得收藏!

Data Service Project

Data Service Project will be used to add data services that allow us to access multiple data sources and expose their data in a very simple way. To create this kind of project, we will start from the Developer Studio dashboard, as usual, and follow these steps:

  1. Click on Data Service Project and add the name and location of the project.
  2. Click on Next and enter the Maven information for the project, that is, Group Id, Artifact Id, and Version. If needed, we can specify the parent project as well, and then click on Finish:
  1. Now, we have added the new data service project to the workspace:

Now, we can create the data services needed for our application.

To add a new data service, go to the Developer Studio dashboard and click on Data Service.

Then, follow these steps:

  1. Choose Create a New Data Service and click on Next.
  2. In this step, we will introduce some general information related to the service:
    • Data Service Name*: This is the desired name.
    • Data Service Group: This is a name for a group, if we would like to group some data services. This is not mandatory and hence we leave it blank.
    • Data Service Namespace: This specifies the namespace for our service.
    • Description: We can add a description here.
    • Save Data Service in: The Data Service Project where we can locate the data service.
  1. Click on Next. Now, we will add the data source information for our data service. There are many ways to create data sources, but according to our experience, the best practice is to create the data sources in the WSO2EI and create references from data services. This way, we can have just one point of data source configuration that provides many advantages. Thus, we will add the following information:
    • Data Source Id: This is a name for the datasource.
    • Data Source Type: As we discussed earlier, we choose Carbon Data Source here, which means that we reference a data source already created in the system.
    • Data Source Name: This is the name of the data source we are referencing.
  1. Click on Finish and the data service will be added:

We can start building our data service by double-clicking on the file. We are now done with the data service edition, and we will go deeper into it in the later chapters.

主站蜘蛛池模板: 涞水县| 五河县| 焉耆| 滁州市| 邯郸县| 潍坊市| 绍兴县| 梅河口市| 隆回县| 华坪县| 平陆县| 洪泽县| 峡江县| 毕节市| 翁源县| 兴宁市| 滨州市| 泌阳县| 巴彦淖尔市| 延吉市| 颍上县| 曲阜市| 南乐县| 太保市| 大荔县| 台南县| 宜良县| 扶绥县| 杨浦区| 集贤县| 凤庆县| 山丹县| 江北区| 海伦市| 江陵县| 德令哈市| 安乡县| 平利县| 垣曲县| 平潭县| 同德县|