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 » MQJMS API, how to check if queue exists in MQ

Post new topic  Reply to topic
 MQJMS API, how to check if queue exists in MQ « View previous topic :: View next topic » 
Author Message
abhay09
PostPosted: Fri Jun 03, 2016 6:46 am    Post subject: MQJMS API, how to check if queue exists in MQ Reply with quote

Acolyte

Joined: 31 May 2016
Posts: 66

HI,

I am using MQJMS API to connect to MQ.
Creating queue, via
JMSContext.createQueue(qname) ;
and
MQQueue q = new MQQueue(qname);

My question , above code is not throwing error for above code even for invalid qname.

It is throwing error only when I tried to use this MQQueue object with JMSBrowser/ Consumer. or Producer.

Now,
I am looking out for a way to check if queue exists or not in MQ when creating MQQueue object,

Do we have any option to do that? check if queue exists while creating its object and not using producer/consumer or browser using MQJMS API

Any help will be appreciated.


Thanks!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jun 03, 2016 9:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You keep wanting to write a JMS business application to act as a monitoring and management application.

NO. DON'T CHECK TO SEE IF A QUEUE EXISTS BEFORE YOU TRY TO USE IT.

Report the error that it doesn't exist. Do the appropriate thing at that time.
_________________
chmod -R ugo-wx /
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 » MQJMS API, how to check if queue exists in MQ
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.