|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
dynamic queue creation very urgent |
« View previous topic :: View next topic » |
Author |
Message
|
brgmo |
Posted: Wed May 28, 2003 9:49 am Post subject: dynamic queue creation very urgent |
|
|
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 |
|
 |
bower5932 |
Posted: Wed May 28, 2003 12:20 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed May 28, 2003 9:43 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|