简体   繁体   English

如何使用WSO2 BPS中配置的数据源

[英]How to use Datasource configured in WSO2 BPS

I am new to WSO2 family ( WSS, ESB & BPS ). 我是WSO2系列( WSS, ESB & BPS )的新手。
Previously I did samples on creating datasource in WSO2 ESB and I have retrieved data from datasource using DBLookup in WSO2 ESB . 以前,我曾在WSO2 ESB创建datasource做过示例,并且已经使用WSO2 ESB DBLookup从数据源中检索了数据。
Now I have configured datasource in WSO2 BPS(from UI) and it is successfully connected to the database. 现在,我已经在WSO2 BPS(from UI)配置了数据源,它已成功连接到数据库。
How Can I use the datasource that I configured in BPS in BPEL Workflow ? 如何使用在BPEL Workflow BPS中配置的数据源?
Please someone guide through it. 请有人指导。
Thanks in Advance. 提前致谢。

Please refer the doucumentation[1] which shows how to define a datasource and refer [2] which shows how to configure datasource in bps.xml 请参考doucumentation [1],它显示如何定义数据源,并参考[2],它显示如何在bps.xml中配置数据源。

[1] http://docs.wso2.org/wiki/display/BPS300/Adding+RDBMS+Data+Sources#AddingRDBMSDataSources-jndi [1] http://docs.wso2.org/wiki/display/BPS300/Adding+RDBMS+Data+Sources#AddingRDBMSDataSources-jndi

[2] http://docs.wso2.org/wiki/display/BPS300/ODE+Configurations#ODEConfigurations-DataSource [2] http://docs.wso2.org/wiki/display/BPS300/ODE+Configurations#ODEConfigurations-DataSource

I think the better approach would be to use WSO2 Data Services Server and create Data Service using the data source. 我认为更好的方法是使用WSO2数据服务服务器并使用数据源创建数据服务。 (You can define the data source in Data Services server). (您可以在Data Services服务器中定义数据源)。 After that you can call them using the BPS. 之后,您可以使用BPS呼叫他们。 Please refer following tutorial on such a comprehensive tutorial. 请参考以下有关此类综合教程的教程。

http://docs.wso2.org/wiki/display/DVS300/Retail+Banking+Sample http://docs.wso2.org/wiki/display/DVS300/Retail+Banking+Sample

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM