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 » Getting error Object in use ????

Post new topic  Reply to topic
 Getting error Object in use ???? « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Thu Feb 03, 2005 4:15 am    Post subject: Getting error Object in use ???? Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi, i am doing a simple program for waiting indefinitely on a queue.

[b]The program works fine if i do not put it in a loop[/b]-- ( DO....WHILE(true) )

The moment i put it in a loop i get a problem in the statement
queue = qMananger.accessQueue("queueName",openOptions)

the error i'm getting is MQRC 2042 which is Object_In_Use
when i did a catch i got the error to be in the object of MQQueueManager

i tried putting a thread.sleep......
tried a while (qManager.isConnected) { qMananger.disconnect }

Nothing seems to work....
Need help.....thx
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Feb 03, 2005 6:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You shouldn't access the queue more than once.
Your loop should be over the Get operation only, and should include a sleep if the Get returns 2033.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Getting error Object in use ????
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.