|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MirrorQ delete original message |
« View previous topic :: View next topic » |
Author |
Message
|
stivazzi |
Posted: Thu Apr 13, 2006 5:20 am Post subject: MirrorQ delete original message |
|
|
Newbie
Joined: 13 Apr 2006 Posts: 2
|
Good morning to everyone!
I have a problem with MirrorQ. i downloaded it and installed, and now it populates 2 new COPY_QUEUES...so i have MY_QUEUE, MY_QUEUE_COPY_1, MY_QUEUE_COPY_2.
now... somebody reads MY_QUEUE_COPY_1 and clear messages inside it automatically; someone else reads MY_QUEUE_COPY_2 and clear messages inside it automatically...
but.. WHO DELETES MESSAGES in original QUEUE??
i'm new in MQ, i don't know if this could be something to set...
who gives me a little help
thanks in advance |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 13, 2006 5:31 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What are you actually trying to do?
Do you want two copies of each message, or three?
Nobody clears any queues unless someone writes code to do so, or does it manually.
Or the messages expire. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
stivazzi |
Posted: Thu Apr 13, 2006 5:43 am Post subject: |
|
|
Newbie
Joined: 13 Apr 2006 Posts: 2
|
i did everything and that's ok, now i just want to delete the messages from the original queue.
i want to delete messages in the original queue after creating 2 identical queues. UserA reads messages from one copied queue, userB reads messages from the second copied queue.
It seems that messages are deleted automatically when they're read from a queue, but what it happens if nobody reads that queue??? i will have my messages in the queue forever? or is it possible to delete messages in any case?
jefflowrey wrote: |
What are you actually trying to do?
Do you want two copies of each message, or three?
Nobody clears any queues unless someone writes code to do so, or does it manually.
Or the messages expire. |
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 13, 2006 5:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
stivazzi wrote: |
i will have my messages in the queue forever? |
Yes. If they are persistent. Or until the next time you restart the queue manager, if they are non-persistent.
stivazzi wrote: |
or is it possible to delete messages in any case? |
Yes. By writing a program that GETS them, by writing a program that executes the "CLEAR QUEUE" command, or by manually executing the "CLEAR QUEUE" command using runmqsc.
But if you don't need the messages on this queue, don't put them there in the first place.
You have two programs that need to read the messages. Use mirrorq to copy messages to ONE other queue. Then program 1 reads from the original queue, and program 2 reads from the copy queue.
Now no messages need to be dealt with manually or otherwise.
Would you go to the store and buy three loaves of bread when you only needed to make two sandwiches? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 13, 2006 5:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Okay, so when jefflowery said:
Nobody clears anyqueues unless someone writes code to do so, or does it manually
why did you not believe him?
If nobody reads the queue, and the messages are not set to expire (or a few other conditions like persistence get in the mix), they will be in the queue forever. Until your queue fills up and it all stops working.
Question: Why can't UserA or UserB read from the original queue? Isn't mirrorq an exit?
(Somebody? Not necessarially the poster??) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 13, 2006 6:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Vitor wrote: |
Question: Why can't UserA or UserB read from the original queue? |
There is nothing that prevents this. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|