wso2 - WSO2 企业集成商。- 服务器上的数据源
问题描述
可以在没有 GUI 的服务器上部署 WSO2 EI 中的数据源吗?我尝试在互联网上找到一些东西,但我发现只在 GUI 中创建数据源。
谢谢
解决方案
您可以将数据源添加到位于 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>
推荐阅读
- sql - Oracle:如果存在,我如何只返回第二个联合的行?
- java - Java 同步列表 - 单线程迭代
- python - 如何从 json 数据创建 DataFrame - 数组中的字典、列表和数组
- flutter - Renderflex 溢出 - 我如何在颤动中克服这个问题?
- php - PHP readdir() 并返回一个假值
- python - 如何在三元素数组中找到唯一元素?
- python-3.x - 如何处理 Pandas Dataframe 中保存为字符串的“年龄箱”?
- c# - 如何为多个用户实现一个命令列表?
- flutter - 发生 Android Studio IDE 内部错误 Error says Unable to serialize DslActivationStatus state
- python - 如何从模型中获取 masklen