Announcement Announcement Module
Collapse
No announcement yet.
Problem with IBM MQ 6.0 , spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with IBM MQ 6.0 , spring

    Hi,

    Existing MQ version is 5.3 and trying to migrate to 6.0.

    With MQ 5.3, connecting to MQ without username and password. But with MQ6.0 it looks like username and password is mandatory. Kindly help me how to pass the username and password and which connectionFactory should be used?

    Included jar files:

    com.ibm.mq.jar
    com.ibm.mqjms.jar
    com.ibm.mq.amt.jar
    com.ibm.mq.jms.Nojndi.jar
    com.ibm.mq.soap.jar
    connetor.jar
    fscontext.jar
    jms.jar
    jta.jar
    providerutil.jar
    dhbcore.jar
    CL3Export.jar
    CL3NoneExport.jar
    commonservices.jar
    rmm.jar
    jndi.jar
    ldap.jar
    postcard.jar

    spring bean configurations are as below:

    <!-- JMS Queue Template -->
    <bean id="jmsTemplate"
    class="org.springframework.jms.core.JmsTemplate102 ">
    <property name="connectionFactory" ref="connectionFactory" />
    <property name="defaultDestinationName" value="${queue.queue}" />
    <property name="pubSubDomain" value="false"/>
    <property name="receiveTimeout" value="20000"/>
    </bean>

    <!-- Spring JMS Queue Connection Factory -->
    <bean id="connectionFactory"
    class="org.springframework.jms.connection.SingleCo nnectionFactory102">
    <property name="targetConnectionFactory">
    <ref bean="internalJmsQueueConnectionFactory" />
    </property>
    <property name="pubSubDomain" value="false"/>
    </bean>

    <!-- JMS Queue Connection Factory -->
    <bean id="internalJmsQueueConnectionFactory"
    class="com.ibm.mq.jms.MQQueueConnectionFactory">
    <property name="hostName" value="${queue.hostName}" />
    <property name="port" value="${queue.port}" />
    <property name="queueManager" value="${queue.queueManager}" />
    <property name="channel" value="${queue.channel}" />
    <property name="transportType" value="1" />
    </bean>

    During migration, getting below error:

    INFO 01/07/2008 16:50:15 <org.springframework.jms.listener.DefaultMessageLi stenerContainer>[listenerContainer-1] (DefaultMessageListenerContainer.java:713) - Could not refresh JMS Connection - retrying in 60000 ms
    javax.jms.JMSSecurityException: MQJMS2013: invalid security authentication supplied for MQQueueManager
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection. java:2241)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnec tion.java:1703)
    at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueCon nection.java:157)
    at com.ibm.mq.jms.MQQueueConnectionFactory.createQueu eConnection(MQQueueConnectionFactory.java:185)
    at com.ibm.mq.jms.MQQueueConnectionFactory.createQueu eConnection(MQQueueConnectionFactory.java:112)
    at org.springframework.jms.connection.SingleConnectio nFactory102.doCreateConnection(SingleConnectionFac tory102.java:123)
    at org.springframework.jms.connection.SingleConnectio nFactory.initConnection(SingleConnectionFactory.ja va:281)
    at org.springframework.jms.connection.SingleConnectio nFactory.createConnection(SingleConnectionFactory. java:209)
    at org.springframework.jms.support.JmsAccessor.create Connection(JmsAccessor.java:188)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.createSharedConnection(AbstractJmsLis teningContainer.java:209)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.refreshSharedConnection(AbstractJmsLi steningContainer.java:197)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.refreshConnectionUntilSuccessful(De faultMessageListenerContainer.java:701)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.recoverAfterListenerSetupFailure(De faultMessageListenerContainer.java:683)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:835)
    at java.lang.Thread.run(Unknown Source


    Regards
    Abhaya

  • #2
    check out the org.springframework.jms.connection.UserCredentials ConnectionFactoryAdapter

    Comment

    Working...
    X