0

我有简单的骡子设置。从 JMS 队列处理消息中读取并在向 DLQ 发送异常的情况下。使用 Mule 3.3.0 和 HornetQ 2.3.0.BETA1。我收到以下异常:

Caused by: java.lang.ClassCastException: org.mule.transport.jms.ReusableTopicSessionWrapper cannot be cast to javax.jms.QueueSession
    at org.mule.transport.jms.Jms102bSupport.createDestination(Jms102bSupport.java:231)
    at org.mule.transport.jms.Jms11Support.createDestination(Jms11Support.java:142)
    at org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:163)
    at org.mule.transport.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:81)
    at org.mule.transport.AbstractMessageDispatcher.process(AbstractMessageDispatcher.java:99)
    ... 113 more

我的设置:

    <jms:connector name="connector.jms" maxRedelivery="10"  doc:name="JMS"

        jndiInitialFactory="org.jnp.interfaces.NamingContextFactory"
        jndiProviderUrl="jnp://localhost:1099"
        connectionFactoryJndiName="ConnectionFactory"
        createMultipleTransactedReceivers="true"
        numberOfConcurrentTransactedReceivers="100"
        acknowledgementMode="AUTO_ACKNOWLEDGE">
    <reconnect-forever frequency="5000"/>       
</jms:connector>
<flow name="jmsListenerFlow1" doc:name="jmsListenerFlow1">
    <jms:inbound-endpoint queue="adsLogQueue" connector-ref="connector.jms" doc:name="JMS">
        <jms:transaction action="ALWAYS_BEGIN"/>
    </jms:inbound-endpoint>
    <component >
        <spring-object bean="logSaver"/>
    </component>
    <catch-exception-strategy>
        <jms:outbound-endpoint queue="DLQ"> <!-- [2] -->
            <jms:transaction action="ALWAYS_JOIN" />
        </jms:outbound-endpoint>            
    </catch-exception-strategy>
</flow>

可能是骡子本身的错误吗?还是我做错了什么?

4

1 回答 1

0

设置specification="1.1"jms:connector.

于 2012-11-02T15:30:32.967 回答