Author |
Message
|
Hanuman |
Posted: Tue Sep 12, 2006 9:46 am Post subject: Creating mulitiple queus! |
|
|
 Voyager
Joined: 28 Aug 2006 Posts: 89
|
hi how to create the Queue Manager. Name it : QM_orf_qa01 and Create the following Queues on the MQ server
GEN2OSM_CPM_ALARM
GEN2OSM_CPM_CTA
GEN2OSM_TM_TSQ_ADHOC
GEN2OSM_TM_TSQ_RECEIPT
GEN2OSM_TM_TSQ_DIALUP_DATAPULL
GEN2OSM_TM_TSQ_FLOWCONTROL
GEN2OSM_TM_TSQ_AC1
CENTRAL_CPM_ALARM
CENTRAL_CPM_CTA
CENTRAL_TM_ALARM_MANAGER_QUEUE
CENTRAL_TM_TCQ_SQDATA
CENTRAL_TM_TCQ_AVMDATA
CENTRAL_TM_TCQ_CMDATA
CENTRAL_TM_TCQ_TRIPDATA
Since this are multiple queus what commands should i use any specific or just create normal as we do.
Thanks in advance...
With regards
Parag |
|
Back to top |
|
 |
vennela |
Posted: Tue Sep 12, 2006 10:05 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You can do:
Create a file with lines like
define QL(q1)
define QL(q2) ...
and name it queues.txt and then do
runmqsc QM_orf_qa01 < queue.txt |
|
Back to top |
|
 |
sanvij |
Posted: Tue Sep 12, 2006 10:47 am Post subject: |
|
|
Novice
Joined: 21 Mar 2003 Posts: 24
|
If all the queue will have same characteristic you can also do this way:
For eg:
define QL(q1) +
cluster(TEST) +
DEFBIND(NOTFIXED) +
PUT(INHIBITED)
define QL(q2) +
LIKE(q1)
The Like command will replicate all the charceristic of q1. This makes your template easy to maintain when you have large of numbers of queues define _________________ Sanvij
IBM Certified MQSeries Specialist
IBM Certified WebSphere MQ Solution Designer |
|
Back to top |
|
 |
Hanuman |
Posted: Tue Sep 12, 2006 8:27 pm Post subject: creation of mutliple queues |
|
|
 Voyager
Joined: 28 Aug 2006 Posts: 89
|
Hi this what i plan to do as u have mention are this steps correct. pls let me know if any correction are to done.
I have prepared steps by which I would be able to create a Queue manger and multiple Queues.
Step 1: Create a default queue manager called QM_orf_qa01by entering the following command:
crtmqm -q QM_orf_qa01.queue.manager
Step 2: Create a queues.txt file where all the names of Queue are defined. here .txt file contains the list of queue.
define QL(GEN2OSM_CPM_ALARM)
define QL(GEN2OSM_CPM_CTA)
define QL(GEN2OSM_TM_TSQ_ADHOC)
define QL(GEN2OSM_TM_TSQ_RECEIPT)
define QL(GEN2OSM_TM_TSQ_DIALUP_DATAPULL)
define QL(GEN2OSM_TM_TSQ_FLOWCONTROL)
define QL(GEN2OSM_TM_TSQ_AC1)
define QL(CENTRAL_CPM_ALARM)
define QL(CENTRAL_CPM_CTA)
define QL(CENTRAL_TM_ALARM_MANAGER_QUEUE)
define QL(CENTRAL_TM_TCQ_SQDATA)
define QL(CENTRAL_TM_TCQ_AVMDATA)
define QL(CENTRAL_TM_TCQ_CMDATA)
define QL(CENTRAL_TM_TCQ_TRIPDATA)
Step 3: To start the queue manager.
strmqm QM_orf_qa01.queue.manager
Step 4 : Enable MQSC commands by typing: runmqsc
runmqsc QM_orf_qa01 < queue.txt (This will careate all the queues with manger as QM_orf_qa01)
Step 5:Stop MQSC by typing: end
end
If any more thing is required let me know
Thanks and regarads
parag |
|
Back to top |
|
 |
Hanuman |
Posted: Tue Sep 12, 2006 8:48 pm Post subject: runmqsc QM_orf_qa01 < /home/mqm/queue.txt |
|
|
 Voyager
Joined: 28 Aug 2006 Posts: 89
|
runmqsc QM_orf_qa01 < queue.txt
Where will i save the queue.txt
Should i mention the path say
runmqsc QM_orf_qa01 < /home/mqm/queue.txt
Is this proper commnad .
Pls let me know
i stuck here................... |
|
Back to top |
|
 |
CMF |
Posted: Wed Sep 13, 2006 10:26 am Post subject: Re: runmqsc QM_orf_qa01 < /home/mqm/queue.txt |
|
|
Novice
Joined: 18 Apr 2006 Posts: 10 Location: Nashville
|
Parag wrote: |
runmqsc QM_orf_qa01 < queue.txt
Where will i save the queue.txt
Should i mention the path say
runmqsc QM_orf_qa01 < /home/mqm/queue.txt
Is this proper commnad .
Pls let me know
i stuck here................... |
Yes, the command looks fine.
You can also redirect the output to a file like this:
runmqsc QM_orf_qa01 </home/mqm/queue.txt >/home/mqm/output.log |
|
Back to top |
|
 |
|