我是Mule的新手,每当我使用固定频率调度程序添加'Poll'来处理mule流,获取命名空间错误。每当我们添加新组件以通过编辑器时,都不应该继续添加命名空间?我是否明确添加了与'poll'相关的命名空间?我期待民意调查的命名空间可以在Mule核心中使用。我正在使用Mule studio-3.5.0。
从元素开始发现无效内容 “固定频率调度”
这是骡子配置 -
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:jersey="http://www.mulesoft.org/schema/mule/jersey"
version="EE-3.4.1"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/jersey http://www.mulesoft.org/schema/mule/jersey/3.4/mule-jersey.xsd
http://jersey.apache.org/core http://jersey.apache.org/schemas/core.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/current/mule-jms.xsd">
<jms:activemq-connector name="Active_MQ" brokerURL="tcp://localhost:61616" validateConnections="true" doc:name="Active MQ"/>
<flow name="mule-configFlow" doc:name="mule-configFlow">
<poll doc:name="Poll">
<fixed-frequency-scheduler frequency="10" timeUnit="SECONDS"/>
<http:outbound-endpoint exchange-pattern="request-response" host="localhost" port="8095" path="myapp/v1/ping" method="GET" doc:name="HTTP"/>
</poll>
<object-to-string-transformer doc:name="Object to String"/>
<jms:outbound-endpoint queue="mytest" connector-ref="Active_MQ" doc:name="JMS"/>
</flow>
编辑: 正如大卫所建议的那样,我试图通过跟随Mule documentations添加Mule 3.5.0 Runtime,但我找不到3.5.0 Cascade或BigHorn。
答案 0 :(得分:1)
fixed-frequency-scheduler
在Mule核心,但是Mule 3.5.0 Cascade或BigHorn,而不是当前正在使用的3.4.1 EE。
切换到这两个运行时之一,它将起作用。