Reputation: 154
I am using Websphere mq v 7.5. When I try to send message to Queue, I get following error :
JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED') Provided Username and password are wrong.
I don't have any credentials to provide as it doesn't ask at time of installation. My camel-context configuration is given below:
<bean id="webspheremq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="myConnectionFactory"/>
</bean>
<bean id="myConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
<property name="hostName" value="mqhost"/>
<property name="port" value="1417"/>
<property name="queueManager" value="QM1"/>
<property name="channel" value="SYSTEM.DEF.SVRCONN"/>
<property name="transportType" value="1"/>
</bean>
Upvotes: 4
Views: 28370
Reputation: 7619
The 2035 error you received will have more information to explain it in the queue manager error log. The fact that the JMS error message mentions a user ID and password is misleading, it could be one of a number of security failures, not necessarily that one, I suspect you are being caught by a default security rule (CHLAUTH rule) that bans the use of SYSTEM channels.
Look in your queue manager AMQERR01.LOG
and then read the following post for more help on how to deal with a failure caused by a CHLAUTH rule.
I'm being blocked by CHLAUTH - how can I work out why?
Upvotes: 3