ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Steps to get the MQ reason codes 2017, 2018, 2019 in java

Post new topic  Reply to topic
 Steps to get the MQ reason codes 2017, 2018, 2019 in java « View previous topic :: View next topic » 
Author Message
bharathkumar.g
PostPosted: Mon May 30, 2016 4:51 am    Post subject: Steps to get the MQ reason codes 2017, 2018, 2019 in java Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon May 30, 2016 9:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
hughson
PostPosted: Mon May 30, 2016 2:39 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Steps to get the MQ reason codes 2017, 2018, 2019 in java
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.