测试中遇到个MQ的问题,记录下来。

上一篇 / 下一篇  2010-06-25 10:47:29

今天工作中遇到个问题,需要纪录一下。Websphere MQ,一些Alias queue需要根据环境指向不同的Q, 用smit mqseries图形界面比较慢,采用命令如下:echo "ALTER QALIAS(TXHB.OUT.CBS.ALIAS) FORCE TARGQ(REMOTEQ.OUT.CBS)" | runmqsc WMBMQ11 >> process.log这里如果不用选项FORCE,则MQ提示说正在使用,更改失败。问题出现在当切换Alias后,应用程序不会相应做改动,依旧指向Alias以前指向的Q,这时应该Reopen,我们这边直接重启Broker了事。场景:System log报State = '-1' 'MQW102' '2041' 错误,然后查询2041错误后给出如下提示:| Object definition changed since opened.| Since the Hobj handle used on this call was returned by the MQOPEN call, object definitions| that affect this object have been changed.| This reason does not occur if the object handle is specified in the Context field of the| PutMsgOpts parameter on the MQPUT or MQPUT1 call.| Corrective action: Issue an MQCLOSE call to return the handle to the system. It is then| usually sufficient to reopen the object and retry the operation. However, if the object| definitions are critical to the application logic, an MQINQ call can be used after reopening the| object, to find out what has changed. 

TAG:

 

评分:0

我来说两句

Open Toolbar