首页 > 解决方案 > WSO2 企业集成商。- 服务器上的数据源

问题描述

可以在没有 GUI 的服务器上部署 WSO2 EI 中的数据源吗?我尝试在互联网上找到一些东西,但我发现只在 GUI 中创建数据源。

谢谢

标签: wso2wso2ei

解决方案


您可以将数据源添加到位于 EI_HOME\conf\datasources\master-datasources.xml 的 master-datasources.xml
中,这是示例代码:

<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>

推荐阅读