Versions Compared

Key

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

This option automatically creates a data service using a given database structure. When generating a data service, the server takes its table structure according to the structure specified in the datasource and automatically creates the SELECT, INSERT, UPDATE, and DELETE operations.  

...

Info

The ESB profile of WSO2 EI comes with the datasource management feature, which allows users to create any RDBMS datasource or custom datasource that is used by the server to connect to databases or external data stores. See Managing Datasources in the WSO2 Administration Guide for instructions on how to use this feature. Note that these pre-defined datasources can also be added to a data service as  Carbon datasources.

Follow the steps given below.

  1. Start the ESB profile.

    Panel
    borderColor#542989
    bgColor#ffffff
    borderWidth1
    Localtabgroup
    Localtab
    activetrue
    titleOn MacOS/Linux/CentOS

    Open a terminal and execute the following command:

    Code Block
    wso2ei-6.4.0-integrator
    Localtab
    titleOn Windows
    Go to Start Menu -> Programs -> WSO2 -> Enterprise Integrator 6.4.0 Integrator. This will open a terminal and start the ESB profile.
  2. Access the management console: https://localhost:9443/cabon
  3. Sign in using admin as the username and password.
  4. Open the Configure tab and click Datasources.
    This will open the Datasources screen.
  5. Click Add Datasource and enter the following details corresponding to the AccountDetails database:

    Datasource TypeRDBMS
    NameAccountDetails
    Datasource providerLeave Default selected.
    Database EngineMySQL
    Drivercom.mysql.jdbc.Driver
    URLjdbc:mysql://localhost:3306/AccountDetails
    User NameEnter your MySQL server's username.
    PasswordEnter your MySQL server's password.
    If you have not assigned a password, keep this field empty.

    Tip

    Want to make sure that your datasource is connected to the database? Click Test Connection to find out.

  6. Save the datasource.

...