Data Service fails when deployed with ESB

岁酱吖の 提交于 2019-12-04 14:22:45

The following actually resolves the issue identified above however the real solution looks like it will require a fix from WSO2. I'll log a JIRA for it.

Please note, the following instructions do not cause any problems with your installation or further upgrades. The changes are pure configuration and fully supported.

The problem is as reported. Running DSS and ESB in the same instance causes some DSS with input parameters to fail.

The solution --> a workaround Simply put, until the defect if resolved you cannot run DSS and ESB in the same Carbon instance. You can however run DSS and ESB on two machines or as described below, run two instances on the same machine.

Uhhh, gee Rob, if the solution was to just to get to a DSS operation why go through all this effort? Why not just setup dss and forget about esb? The answer due to wanting to use features of both dss and esb together on a single machine. If all you need is basic dss functionality then you can stop reading. But if you need functions from both on the same machine, please continue.

Running ESB and DSS on a single machine

  1. Install both DSS and ESB independently.
  2. Ensure neither are running
  3. The ESB has to be started with the port offset of 1. Port offset can be set in the /repository/conf/carbon.xml file where is the ESB binary distribution folder. Set the offset value as 1
  4. Start both instances
  5. ESB now needs a proxy to the DSS service we had problems. Create a Passthrough proxy in esb to dss using the following structions https://docs.wso2.com/display/ESB470/Pass+Through+Proxy+Template
  6. Now use TRYIT from the esb. Success!

I hope you find this helpful.

I´ve had the same issue before, but I´ve managed to find a workaround: Replace the file $CARBON_HOME/repository/conf/axis2.xml by $CARBON_HOME/repository/conf/axis2_nhttp.xml

This will replace the Passthrough by NHTTP implementation for the HTTP(s) transport, which is the same used in the standalone DSS.

Please note that this wil have a negative performance impact on proxies, so you may prefer to stick with two carbon instances.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!