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 API Support » dynamic queue creation very urgent

Post new topic  Reply to topic
 dynamic queue creation very urgent « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Wed May 28, 2003 9:49 am    Post subject: dynamic queue creation very urgent Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi All
Can anybody send me a code which can help me in creating a dynamic queue using java.It is very-very urgent. Please help me since i am in a midst of project and this has to be delivered urgently. Brandon, if you have any readymade code, then please send it to me.
Regards
Prabhat.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed May 28, 2003 12:20 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

The unsubscribe.java program at:

http://www.developer.ibm.com/tech/sampmq.html

It uses a dynamic queue for its replies.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
RogerLacroix
PostPosted: Wed May 28, 2003 9:43 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Ta-da:
Code:
MQQueueManager _qMgr;
MQQueue        _inQ;
String modelQName   = "SYSTEM.DEFAULT.MODEL.QUEUE";
String dynamicQName = "FRED.*";
int openInputOptions = MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_INPUT_SHARED;

try
{
   _qMgr = new MQQueueManager("MQA1");  // connect to a q manager

   _inQ = _qMgr.accessQueue( modelQName,
                             openInputOptions,
                             null,           // default q manager
                             dynamicQName,   // dynamic q name
                             null );         // no alternate user id

   // grap the generated name!
   realDynamicQName = _inQ.name;

}
catch (MQException e)
{
   System.out.println("CC=" + e.completionCode + " RC=" + e.reasonCode + " - " + e);
}


later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
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 API Support » dynamic queue creation very urgent
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.