我使用的是Apama v10.3.1。我使用的是Cumulocity安装的内置Apama容器(目前是v9.20,很快会升级到v10.4.0),也就是说,我上传的只是一个监视器,而不是整个Apama项目。在我的Apama监视器中,我正在对Cumulocity REST API执行HTTP GET请求,以获取我的监视器处理所需的其他参数。
我遵循这里的文档:
http://www.apamacommunity.com/documents/10.3.1.1/apama_10.3.1.1_webhelp/apama-webhelp/#page/apama-webhelp%2Fco-ConApaAppToExtCom_httpclient_using_predefined_generic_event_definitions.html%23wwconnect_header
问题是,遵循这种方法需要监视器使用包com.softwareag.connectivity.httpclient。
但是,不能将具有包定义的监视器上载到Cumulocity中内置的Apama容器。如果您尝试上载具有包定义的监视器,Cumulocity将抛出错误。这里也记录了这一点:
https://cumulocity.com/guides/apama/best-practices/#limitations
现在,有没有办法从监视器调用HTTP服务,该服务将在Cumulocity的内置Apama容器中执行?
谢谢,马蒂亚斯
发布于 2019-05-22 00:49:59
对不起,显然我可以导入所需的类,而不是导入包,如下所示:
using com.softwareag.connectivity.httpclient.HttpTransport;
using com.softwareag.connectivity.httpclient.Request;
using com.softwareag.connectivity.httpclient.Response;谢谢,马蒂亚斯
https://stackoverflow.com/questions/56240069
复制相似问题