0

Mule ESB を既存の OpenMQ ブローカーに接続しようとしています。openmq 統合用の mulesoft ドキュメントから構築すると、次のフローがあります。

<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?

いくつかの要素が例から除外されているように感じます。誰かが何が欠けているか教えてもらえますか?

4

1 に答える 1

2

私の知る限り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"/>
于 2013-02-26T23:12:08.653 に答える