[英]WSO2 enterprise integrator. - datasource on server
It is possible deploy datasource in WSO2 EI on server without GUI? 是否可以在没有GUI的服务器上的WSO2 EI中部署数据源? I try find something on internet but i found only create datasource in GUI. 我尝试在Internet上找到某些内容,但发现仅在GUI中创建数据源。
Thanks 谢谢
You may use Integration Studio for this purpose. 您可以为此使用Integration Studio。 Please refer https://docs.wso2.com/display/EI650/Managing+Data+Integration+Artifacts+via+Tooling#ManagingDataIntegrationArtifactsviaTooling-Step2:Creatingthedatasourceconnection . 请参阅https://docs.wso2.com/display/EI650/Managing+Data+Integration+Artifacts+via+Tooling#ManagingDataIntegrationArtifactsviaTooling-Step2:创建数据源连接 。
You can create a carbon application in the tooling and deploy it to the server without using GUI. 您可以在工具中创建Carbon应用程序,然后将其部署到服务器,而无需使用GUI。
You can add your datasource into master-datasources.xml that is located in EI_HOME\\conf\\datasources\\master-datasources.xml 您可以将数据源添加到EI_HOME \\ conf \\ datasources \\ master-datasources.xml中的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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.