Mqget Error Code 2033
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
Mq Timeout Error 2033
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question mq error codes x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join mq error 2085 them; it only takes a minute: Sign up How to avoid MQRC2033 NO_MSG_AVAILABLE up vote 4 down vote favorite 1 I have a simple program to process messages from a queue. My intention is to process all available messages in http://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.tro.doc/q041040_.htm queue and still listen to queue for incoming messages. I have written the processing part inside a infinite loop as i want it to listen to queue always and process messages. Once after processing all messages again it tries to get a message(as it is inside a infinite loop) from the queue and there is no messages it throws MQRC 2033 NO_MSG_AVAILABLE exception(infact it is correct) and my program exits. Can someone give an idea to continously listen to http://stackoverflow.com/questions/6479259/how-to-avoid-mqrc2033-no-msg-available this queue and avoid this exception. websphere-mq share|improve this question asked Jun 25 '11 at 17:06 Vignesh 3281431 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted When you execute the MQGET API call, there is an option to have the program wait for messages. You can specify a wait time (in milliseconds) or specify to wait forever. Just make sure that if you have the app wait for more than a few seconds, also specify 'Fail if Quiescing'. This allows the queue manager to be stopped cleanly. Without 'Fail if Quiescing' the administrator will need to issue a preemptive shutdown which can cause problems. There is a section specifically for this question in the Programmer's Guide in the Waiting for Messages chapter. Depending on the language you are writing in ,the actual value to specify is in the Programmer's Reference, the Using Java manual or the Using .Net manual. Each of these will be visible in the navigation panel when you click the link above. share|improve this answer answered Jun 26 '11 at 3:24 T.Rob 23.3k84381 Thanks Rob.. I specified MQWI_UNLIMITED in my get option.. It worked as expected.Thank you so much. –Vignesh Jun 26 '11 at 12:00 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email a
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support
MQSeries.net http://eai.ittoolbox.com/groups/technical-functional/mqseries-l/completion-code-2-reason-2033-2134113 Forum Index » General Discussion » how to remove the error code 2033 how to remove the error code 2033 « View previous topic :: View next topic » Author Message RatheeshKulavil Posted: Wed Aug 18, 2010 2:26 am Post subject: how to remove the error code 2033 NewbieJoined: 18 Aug 2010Posts: 1 Hi All, i am new to the code 2 mq,i have one doubt Actually i want to suppress the 2033 code,i know 2033 means there is no data in q.but my application is real time application ,so when ever ther is no data in q .i am getting this message.since it consumes lots of space we need to supress it.please help me. Back to top exerk Posted: Wed Aug 18, 2010 2:36 am Post subject: Jedi CouncilJoined: mqget error code 02 Nov 2006Posts: 5485 What do you mean by "...since it consumes lots of space..."? Space where? In your application log? If so, that's your problem, there's nothing that can be done with WMQ to suppress it._________________It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. Back to top Mr Butcher Posted: Wed Aug 18, 2010 3:43 am Post subject: PadawanJoined: 23 May 2005Posts: 1715 i don't know how to help, but ithink i know his problem (as our developers reported something similiar) . He is probably running a java application and is getting this in stderr every time his mqget hits an empty queue :MQJE001: Completion Code 2, Reason 2033_________________Regards, Butcher Back to top PeterPotkay Posted: Wed Aug 18, 2010 3:44 am Post subject: Jedi CouncilJoined: 15 May 2001Posts: 7251Location: Hartford CT There are posts in the MQ Java forum that include this problem and a solution._________________Peter Potkay Keep Calm and MQ On Back to top bruce2359 Posted: Wed Aug 18, 2010 7:05 am Post subject: PoobahJoined: 05 Jan 2008Posts: 7576Location: US: west coast, almost. Otherwise, enroute. Take a look at ReasonCode 2033 in the manuals. It meanTechnology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries Inside-ERP VoIP_News MacProTX I_am_the_dragon Inside-CRM maxwellarnold Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker Ramnath.Awate JoeTorre Locutus Craig Borysowich Dennis Stevenson DukeGanote Richard mircea_luca iudithm Clinton Jones bracke Nikki Klein AbhaiTripathi Iqbalyk blrvenkat jakarman Adrian_Grigoriu COMPANIES SendGrid ZOHO Corporation Apperian eFax Corporate View All Topics View All Members View All Companies Toolbox for IT Topics Enterprise Architecture and EAI Groups Ask a New Question MQSeries For discussion on MQSeries , please visit the Enterprise Architecture & EAI - General Discussions group. More Enterprise Architecture and EAI Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. Completion Code 2, Reason 2033 Narendra Yerrala asked May 26, 2008 | Replies (11) Hi, I am new to IBM MQ series , I have written a stand alone Java program which will send an up host to the MQ and tried to get the down host.With my program I am able to get the MQ manager instance , able to connect the host, placing the up host message successfully on the Queue and reaching it to Host (as I have seen the "current depth" length in MQ explorer for that partic