我正在使用WSO2 EI 6.6.0。按照https://medium.com/sa-team-blog/wso2-enterprise-integrator-with-activemq-esb-as-a-jms-producer-71f053d1b0be文章的说明,我试图创建一个API或代理来检查与ActiveMQ代理的连接。
但是根据本文给出的代码,尝试将API另存为时,我遇到了一个问题;
Unknown mediator referenced by configuration element : {http://ws.apache.org/ns/synapse}target
我的代码是
<?xml version="1.0" encoding="UTF-8"?>
<api context="/myapi" name="QueueAPI" xmlns="http://ws.apache.org/ns/synapse">
<resource methods="POST GET">
<inSequence>
<property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
<property name="FORCE_SC_ACCEPTED" scope="axis2" type="STRING" value="true"/>
<target>
<endpoint>
<address uri="jms:/[QueueName]?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&
java.naming.provider.url=tcp://localhost:61616&transport.jms.DestinationType=queue"/>
</endpoint>
</target>
</inSequence>
<outSequence>
<respond/>
</outSequence>
<faultSequence/>
</resource>
</api>
如何解决此问题?