Results 1 to 3 of 3

Thread: IBM MQ and Spring integration

  1. #1

    Default IBM MQ and Spring integration

    Hi,

    I am able to listen to an Active MQ using "int-jms:message-driven-channel-adapter" and
    "org.springframework.jms.connection.CachingConnect ionFactory" by providing the conection factory for Active MQ.

    Below is the code:
    <int-jms:message-driven-channel-adapter id="jmsList" destination-name="${test.queue.name}"


    <bean class="org.springframework.jms.connection.CachingC onnectionFactory" id="conFact">
    <constructor-arg ref="amqConFactory" />
    </bean>

    <amq:connectionFactory id="amqConFactory" brokerURL="${jms.brokerURL}" />


    If I want to change from Active MQ to IBM MQ series, what all changes do I need to do? Any pointer will be helpful.

    Thanks

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,140

    Default

    Google is your friend.

    Just replace the <amq:connectionFactory /> with a <bean/> of class="com.ibm.mq.jms.MQQueueConnectionFactory" and use IBM queues and topics.

    If you google IBM MQ SPRING you'll get lots of examples.
    Last edited by Gary Russell; May 21st, 2012 at 06:53 AM.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3

    Default

    Hi,

    I have tried with "MQQueueConnectionFactory" by providing the following information:
    1. Host Name
    2. Port
    3. Queue Manager
    4. User credential
    5. Queue Name

    It is able to listen to the queue.

    Now my vendor has not provided the queue manager name. However, they have provided the below details:
    1. Host Name
    2. Port
    3. User credential
    4. Queue Name
    5. JNDI for queue
    6. JNDI for activation spec

    Can you please tell me whether it will be able to listen to this queue with this information? If yes, can you let me know the changes that I need to do?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •