Reputation: 11
I am getting following error while trying to connect with IBM MQ. I have done enough configuration in MQ Explorer but still getting this error.
**MQ Config:**
<InputDef name="Order" type="mq">
<property name="message.flow" value="OrderFlow" />
<property name="queue.adapter" value="com.tplus.transform.runtime.external.queueutils.ibmmq.IBMMQAdapter" />
<property name="queue.ibmmq.manager" value="QM1" />
<property name="queue.ibmmq.host" value="localhost" />
<property name="queue.ibmmq.port" value="1414" />
<property name="queue.ibmmq.channel" value="CH1" />
<property name="queue.name" value="Q1" />
<property name="queue.ibmmq.headertype" value="jms" />
</InputDef>
</InputDefs>
<OutputDefs>
<!-- Instantiate a RMIOutputHandler that is registered in the JNDI with the specified devicename
The output is written to the specified directory -->
<OutputDef name="Order" type="rmi">
<property name="output.device" value="device.order" />
<property name="output.writer" value="com.tplus.transform.runtime.external.output.mq.QueueOutputDeviceWriterFactory"/>
<property name="queue.adapter" value="com.tplus.transform.runtime.external.queueutils.ibmmq.IBMMQAdapter" />
<property name="queue.ibmmq.manager" value="QM1" />
<property name="queue.ibmmq.host" value="localhost" />
<property name="queue.ibmmq.port" value="1414" />
<property name="queue.ibmmq.channel" value="CH1" />
<property name="queue.name" value="Q2" />
<property name="queue.ibmmq.headertype" value="jms" />
</OutputDef>
Upvotes: 0
Views: 5810
Reputation: 129
Did you disable authorisation for the queue manager QM1?
Try this:
Create connection for MQ Explorer
runmqsc QM1
define channel(SYSTEM.ADMIN.SVRCONN) chltype(SVRCONN) MCAUSER('mqm')
alter qmgr chlauth(DISABLED)
refresh security
After these commands use Channel SYSTEM.ADMIN.SVRCONN instead of CH1. Or try to change SYSTEM.ADMIN.SVRCONN to CH1 in the command.
Change access permissions for rfhutil
runmqsc QM1
ALTER AUTHINFO(SYSTEM.DEFAULT.AUTHINFO.IDPWOS) AUTHTYPE(IDPWOS) CHCKCLNT(OPTIONAL)
REFRESH SECURITY TYPE(CONNAUTH)
Upvotes: 4