I am new to WSO2 family (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.
Now I have configured datasource in WSO2 BPS(from UI) and it is successfully connected to the database.
How Can I use the datasource that I configured in BPS in BPEL Workflow?
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
[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
I think the better approach would be to use WSO2 Data Services Server and create Data Service using the data source. (You can define the data source in Data Services server). After that you can call them using the BPS. Please refer following tutorial on such a comprehensive tutorial.
http://docs.wso2.org/wiki/display/DVS300/Retail+Banking+Sample
Related
I want to fetch data from MySQL database into a WSO2 BPEL process (designed in wso2 developer studio eclipse).
How to invoke the database from the bpel process?
You can create a data service in DSS to fetch data from DB. Refer [1]. Then invoke that service from BPS using a bpel invoke like explained in [2].
[1] - https://docs.wso2.com/display/DSS321/RDBMS+Sample
[2] - http://wso2.com/library/tutorials/2011/04/using-carbon-studio-model-wsbpel-process-using-bpel-editor/#scenario
So quick question regarding WSO2 API manager and BAM from what I can tell Bam saves the basic requests to the API manager to the DB and the Publisher then reads from the DB when displaying the stats. At what point in the analyzer part of BAM in action ie Casandra and Hadoop. Or does that just get used if I write my own hive queries?
Thanks
When you integrate WSO2 BAM with API Manager for Analytics following happens.
API Manager publishers data using thrift for BAM.
There are hive scripts which is included in the toolbox. There are scheduled and when they are running summarized data will be inserted into the databases.
I am new to WSO2 and we are planing to use WSO2 in our product. Our requirement is to communicate with other system through TCP(socket) and rest web services. I did not find any help regrading to my requirement.
I need a step by step guide or any tutorial about my requirements or any sample projet. Thanks
You can use WSO2 ESB to connect systems with TCP and HTTP(rest). You can go through WSO2 ESB documents and find enough samples on that. TCP[1][2], rest api[3]. If you are going to manage the rest apis then you can use the WSO2 API Manager[4]
[1]https://docs.wso2.com/display/ESB500/Setting+Up+the+ESB+Samples#SettingUptheESBSamples-ConfiguringWSO2ESBtousetheTCPtransport
[2] https://docs.wso2.com/pages/viewpage.action?pageId=33136069
[3] https://docs.wso2.com/display/ESB500/Using+REST+with+APIs
[4] https://docs.wso2.com/api-manager-documentation
I have an Rest service build on wso2 Dss. This Rest call an SQL query link to an datasource.
I cannot find the way to switch on runtime the datasource. I want with the same service, do the same query on an different datasource that I can specified in parameter.
Thank for your help.
Best regards,
Nicolas
You can make several DSS services with different datasource and make Proxy service in WSO ESB to balancing requests to your DSS services by parameter in url.
I know I can access the WSO2 Governance Registry programmatically using the API. Is it also possible to access and upload/modify information on another (non GREG) servers'registry and how?
Is the approach the same? Is it possible to upload hive scripts for example on BAM programically?
Accessing embedded registry from a 'non GREG' WSO2 product using the registry API, is described here [1] in WSO2 Application Server documentation page.
[1] http://docs.wso2.org/display/AS520/Basic+Registry+API+Knowledge
Thanks,
Isuruwan