|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Steps to get the MQ reason codes 2017, 2018, 2019 in java |
« View previous topic :: View next topic » |
Author |
Message
|
bharathkumar.g |
Posted: Mon May 30, 2016 4:51 am Post subject: Steps to get the MQ reason codes 2017, 2018, 2019 in java |
|
|
Newbie
Joined: 13 May 2016 Posts: 4
|
Could you please let me know the steps to get the MQ reason codes 2017, 2018, 2019 in java.
Actually I have checked the description of these reason codes, but it is somewhat not understandable and failed to simulate.
I have to simulate these MQ reason codes (2017, 2018, 2019) in java.
Kindly treat this as urgent. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon May 30, 2016 9:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Don't know if you can get those in Java... but mess around with threads and it should be fairly easy to get them in C...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
hughson |
Posted: Mon May 30, 2016 2:39 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
You should be able to generate MQRC_HANDLE_NOT_AVAILABLE (2017) by setting the attribute mentioned in the Programmer Response section of the description to a low value.
The other two, MQRC_HCONN_ERROR (2018) and MQRC_HOBJ_ERROR (2019) are both dealing with handles, connection handles and object handles respectively. Given that OO interfaces like the Java classes do not work with handles and abstract those away from you, if you were to see either of these return codes in an OO interface it would be a defect in the IBM supplied classes. You should not expect to be able to simulate these in Java.
May I ask why you have a need to simulate these in Java?
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|