如何在 camelContext 配置中从 activeMQ 迁移到 ibmMQ?

How to migrate from activeMQ to ibmMQ in camelContext configuration?

我目前正在使用 AciveMQ 进行路由。但现在我需要迁移到 ibmMq。这是我对 AciveMq 的 camelContext.xml 配置。请帮助我进行 ibmMq 配置。 提前致谢。

<bean id="jmsConnectionFactory"
          class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616"/>
    </bean>

    <bean id="pooledConnectionFactory"
          class="org.apache.activemq.pool.PooledConnectionFactory" init-method="start" destroy-method="stop">
        <property name="maxConnections" value="8"/>
        <property name="connectionFactory" ref="jmsConnectionFactory"/>
    </bean>

    <bean id="jmsConfig"
          class="org.apache.camel.component.jms.JmsConfiguration">
        <property name="connectionFactory" ref="pooledConnectionFactory"/>
        <property name="concurrentConsumers" value="10"/>
    </bean>
<camelContext xmlns="http://camel.apache.org/schema/spring">
    <bean id="activemq"
          class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="configuration" ref="jmsConfig"/>
    </bean>

<route id="*****">
            <from uri="+++++++++" />
            <choice>
                    <to uri="activemq:queue:**********"/>
                            </choice>
        </route>
    </camelContext>

任何人都可以帮助我更改所有与 IBMmq 相关的配置吗 我是 IBMmq 的新手:(

在这里,我设法使用 ibm mq 进行配置 :)

<broker xmlns="http://activemq.apache.org/schema/core"
          brokerName="${broker-name}"
          dataDirectory="${data}"
          start="false">
    ...
  </broker>
  ...
  <!-- Configure IBM WebSphere MQ connection factory -->
  <bean id="weblogicConnectionFactory"
        class="com.ibm.mq.jms.MQConnectionFactory">
    <property name="transportType" value="1"/>
    <property name="hostName" value="localhost"/>
    <property name="port" value="1414"/>
    <property name="queueManager" value="QM_TEST"/>
  </bean>

  <bean id="weblogicConfig" 
        class="org.apache.camel.component.jms.JmsConfiguration">
    <property name="connectionFactory" ref="weblogicConnectionFactory"/>
    <property name="concurrentConsumers" value="10"/>
  </bean>

  <bean id="weblogic" 
        class="org.apache.camel.component.jms.JmsComponent">
    <property name="configuration" ref="weblogicConfig"/>
  </bean>

成功:)