我正在尝试将Mule ESB连接到现有的OpenMQ代理。从mulesoft docs for openmq integration构建,我有以下流程;
<jms:custom-connector name="Custom_JMS" specification="1.1"
class="com.sun.messaging.ConnectionFactory"
validateConnections="true" doc:name="Custom JMS"/>
<flow name="EchoFlow" doc:name="EchoFlow">
<jms:inbound-endpoint doc:name="JMS"
connector-ref="Custom_JMS" responseTimeout="1000"
topic="mytopic"/>
<echo-component doc:name="Echo"/>
<logger message="#[message:payload]" doc:name="Logger"/>
</flow>然而,我在运行时得到一个错误;
[02-26 10:54:08] ERROR DefaultMuleApplication [main]: null
org.springframework.beans.NotWritablePropertyException: Invalid property 'acknowledgementMode' of bean class [com.sun.messaging.ConnectionFactory]: Bean property 'acknowledgementMode' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?我有一种感觉,这个例子中有几个元素被省略了。有人能告诉我少了什么吗?
发布于 2013-02-27 07:12:09
AFAIK custom-connector需要一个扩展org.mule.transport.jms.JmsConnector的类。试着这样做:
<spring:bean name="connectionFactory" class="com.sun.messaging.ConnectionFactory"/>
<jms:connector name="JMSConnector"
connectionFactory-ref="connectionFactory"
specification="1.1"/>https://stackoverflow.com/questions/15093681
复制相似问题