连接队列管理器与多个线程

时间:2013-05-22 14:18:06

标签: ibm-mq mq

我们正在尝试使用队列管理器的多个连接句柄发布有关主题的消息。我们正在使用线程。     然而,当我们使用五十个线程时,消息被正确地发布到主题上但是当我们继续增加线程时,比如500,我们得到以下原因代码2071,2012,2538用于某些线程然后程序崩溃给出原因代码作为剩余线程的2059

I thought that may be due to restriction on the number of connection handle we are getting these errors. So I tried
1.  adding channels stanza to qm.ini file
        CHANNELS:
        MaxChannels=<number>
        MaxActiveChannels=<number> 

2.  altering MAXHANDS of my queuemanager to 2000


But found no luck in the above approaches.
Kindly help me in solving this issue.

PS. We have created our own Library for calling websphere MQ API.

Thanks,
Mandar.

1 个答案:

答案 0 :(得分:1)

建议您尝试在用于连接到队列管理器的服务器连接通道上增加共享对话(SHARECNV)值。

在runmqsc shell中运行以下命令以更改通道的SHARECNV。

alter channel <your SVRCONN channel name> chltype(SVRCONN) sharecnv(<say 100>)