Author |
Message
|
maxy_14in |
Posted: Fri Nov 07, 2008 5:37 pm Post subject: help rgarding veryfying n testing the clusters |
|
|
Apprentice
Joined: 07 Nov 2008 Posts: 43
|
I'm new to MQ i was trying the Cluster Concept from IBM, i have created the cluster succesfully nd run
TASK 1:
Test your setup by sending some messages between the two queue managers, using amqsput. In the following example LONDON puts a message to the INVENTQ at NEWYORK:
1. On LONDON issue the command:
* amqsput INVENTQ LONDON
2. Type some messages
3. On NEW YORK issue the command:
* amqsget INVENTQ NEWYORK
4. You should now see the messages you entered on LONDON
TASK 2 :
Test your setup by sending some messages between the two queue managers. In the following example LONDON puts a message to the INVENTQ at NEWYORK and receives a reply on its queue LONDON_reply.
1. Define a local queue called LONDON_reply
2. Set the MQOPEN options to MQOO_OUTPUT
3. Issue the MQOPEN call to open the queue INVENTQ
4. Set the ReplyToQ name in the message descriptor to LONDON_reply
5. Issue the MQPUT call to put the message
6. Commit the message
On NEWYORK:
1. Set the MQOPEN options to MQOO_BROWSE
2. Issue the MQOPEN call to open the queue INVENTQ
3. Issue the MQGET call to get the message from INVENTQ
4. Retrieve the ReplyToQ name from the message descriptor
5. Put the ReplyToQ name in the ObjectName field of the object descriptor
6. Set the MQOPEN options to MQOO_OUTPUT
7. Issue the MQOPEN call to open LONDON_reply at queue manager LONDON
8. Issue the MQPUT call to put the message to LONDON_reply
On LONDON:
1. Set the MQOPEN options to MQOO_BROWSE
2. Issue the MQOPEN call to open the queue LONDON_reply
3. Issue the MQGET call to get the message from LONDON_reply
TASK 1 was done succesfully can anyone help me with TASK 2. Thank You |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Nov 08, 2008 11:57 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9471 Location: US: west coast, almost. Otherwise, enroute.
|
Start by reading the WMQ Clusters manual. There are examples of how to set up clusters. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Sat Nov 08, 2008 1:51 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Nov 08, 2008 2:48 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9471 Location: US: west coast, almost. Otherwise, enroute.
|
Ah, yes, it sounded familiar.
Quote: |
can anyone help me with TASK 2? |
What happened in TASK 2 when you attempted this? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
maxy_14in |
Posted: Mon Nov 10, 2008 10:38 am Post subject: |
|
|
Apprentice
Joined: 07 Nov 2008 Posts: 43
|
thnk u very much for ur replies ....
but my qstn is how to strt the task 2 i.e how can i set the MQOPEN options to MQOO_OUTPUT after defining a local queue can any1 of u plz help me with these tings in task 2 |
|
Back to top |
|
 |
mvic |
Posted: Mon Nov 10, 2008 12:14 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
maxy_14in wrote: |
thnk u very much for ur replies ....
but my qstn is how to strt the task 2 i.e how can i set the MQOPEN options to MQOO_OUTPUT after defining a local queue can any1 of u plz help me with these tings in task 2 |
You have to write an MQ application. Start with amqsput0.c as an example. |
|
Back to top |
|
 |
ranganathan |
Posted: Mon Nov 10, 2008 9:38 pm Post subject: |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
maxy_14in wrote: |
thnk u very much for ur replies ....
but my qstn is how to strt the task 2 i.e how can i set the MQOPEN options to MQOO_OUTPUT after defining a local queue can any1 of u plz help me with these tings in task 2 |
Read through the links 'mqjeff' provided above, they can be used to test Task-2 |
|
Back to top |
|
 |
|