【发布时间】:2020-07-18 03:38:21
【问题描述】:
我已经编写了一个计划任务,它在 wso2 ei 6.4.0 中按顺序调用 Api。我的任务是:
<task xmlns="http://ws.apache.org/ns/synapse"
name="GetMunicipalityAPIToken"
class="org.apache.synapse.startup.tasks.MessageInjector"
group="synapse.simple.quartz">
<trigger interval="60"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks" name="message">
<test xmlns=""/>
</property>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="sequenceName"
value="GetTokenFromMunicipalityService"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
name="injectTo"
value="sequence"/>
</task>
我的顺序是:
<?xml version="1.0" encoding="UTF-8"?>
<sequence name="GetTokenFromMunicipalityService" xmlns="http://ws.apache.org/ns/synapse">
<send>
<endpoint>
<http method="POST" uri-template="http://x.x.x.x/api/MunicipalityBill/connect/token"/>
</endpoint>
</send>
</sequence>
但是当我在 wso2eiHome/bin 中运行 integrator.bat 时,我收到了这个错误:“无法初始化启动控制器。找不到任务管理器”并且没有调用 Api。我是不是忘记了什么?
【问题讨论】: