0
votes

It is possible deploy datasource in WSO2 EI on server without GUI? I try find something on internet but i found only create datasource in GUI.

Thanks

2

2 Answers

0
votes

You may use Integration Studio for this purpose. Please refer https://docs.wso2.com/display/EI650/Managing+Data+Integration+Artifacts+via+Tooling#ManagingDataIntegrationArtifactsviaTooling-Step2:Creatingthedatasourceconnection.

You can create a carbon application in the tooling and deploy it to the server without using GUI.

0
votes

You can add your datasource into master-datasources.xml that is located in EI_HOME\conf\datasources\master-datasources.xml
here is the example code:

<datasource>
    <name>WSO2_ESB_LOGS_DB</name>
    <description/>
    <jndiConfig>
        <name>jdbc/WSO2EsbLogsDB</name>
    </jndiConfig>
    <definition type="RDBMS">
        <configuration>
            <url>jdbc:postgresql://localhost:5432/mydb</url>
            <username>myusername</username>
            <password>mypassword</password>
            <driverClassName>org.postgresql.Driver</driverClassName>
            <maxActive>50</maxActive>
            <maxWait>60000</maxWait>
            <defaultAutoCommit>false</defaultAutoCommit>
            <testOnBorrow>true</testOnBorrow>
            <validationQuery>SELECT 1</validationQuery>
            <validationInterval>30000</validationInterval>
        </configuration>
    </definition>
</datasource>