Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

com.ibm.mq.MQException: Completion Code 2, Reason 2019

Status
Not open for further replies.

lriverahonores

IS-IT--Management
Dec 16, 2002
18
PE
To create a connection to MQ to write a message in a remote queue:

write = new MQConn("localhost", 'QMB2MPROD', 'CLIENT.B2M.CANAL', null, 0, 'B2M.SOUTHERN.COLA.SALIDA', MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_OUTPUT | MQC.MQOO_ALTERNATE_USER_AUTHORITY);

this line of the program failed at the same time that other connection to MQ was created.

Why did it happen? Do MQ support threads? concurrent connections?
 
What do you mean by this...

"this line of the program failed at the same time that other connection to MQ was created."

If you mean that you have 2 instances of this same app running concurrently, then Yes, MQ supports that. NOt even that, MQ also supports threading depending upon the platfomr you are using.

Explain the error scenario in deatil to help you out.



Cheers
KK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top