Topic
  • 1 reply
  • Latest Post - ‏2016-12-12T15:09:17Z by fjb_saper
floyd4644
floyd4644
3 Posts

Pinned topic Authentication error in WAS v8.5 queue connection factories to MQ9

‏2016-11-29T15:28:17Z |

This is the setup.

We have a Java web application deployed in Websphere Application server v8.5. The jms queue connection factories are defined in it in the admin console. Our application makes use of Spring jms 4.2.4 to find the defined queue (through jndi) defined in WAS. The problem is if we set the password to more than 12 characters, authentication fails. 

 

Here is our application.xml

 

        <bean id="mqConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="jms/QueueConnFactoryDEV" />
    <property name="lookupOnStartup" value="false" />
    <property name="cache" value="true" />
    <property name="proxyInterface" value="javax.jms.QueueConnectionFactory" />
</bean>

<bean id="connectionFactory"
    class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
    <property name="targetConnectionFactory" ref="mqConnectionFactory" />
    <property name="username" value="userdev" />
    <property name="password" value="P@ssw0rd12345678" />
</bean>

<bean
    class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />

<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
    <property name="connectionFactory" ref="connectionFactory" />
    <property name="defaultDestinationName" value="MQ.DEV" />
</bean>

 

 

 

When the password is more than 13, it doesnt work. Is there any solution to this?

 

Any help would be appreciated. Thanks

  • fjb_saper
    fjb_saper
    240 Posts

    Re: Authentication error in WAS v8.5 queue connection factories to MQ9

    ‏2016-12-12T15:09:17Z  

    You need to set an additional property on the connection factory for it to use MQCSP...