Author |
Message
|
ammar |
Posted: Tue Nov 25, 2008 5:45 am Post subject: delete msgs from a Queue |
|
|
Novice
Joined: 10 Nov 2008 Posts: 12
|
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options
how can i delete a specified num of msgs through pcf commands |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 25, 2008 5:53 am Post subject: Re: delete msgs from a Queue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ammar wrote: |
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options |
Use get - it's easier in terms of security. If you're clearing the queue (or positively deleting messages) why use syncpoint?
And why delete based on number? Why not age and/or content? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ammar |
Posted: Tue Nov 25, 2008 6:00 am Post subject: Re: delete msgs from a Queue |
|
|
Novice
Joined: 10 Nov 2008 Posts: 12
|
Vitor wrote: |
ammar wrote: |
i want to wirte a program that can clear whole qeue or if it can delete some specified number of msg eg from 1-10 tell me which method will be better n for me pcf commands or using get with syncpoint options |
Use get - it's easier in terms of security. If you're clearing the queue (or positively deleting messages) why use syncpoint?
And why delete based on number? Why not age and/or content? |
Get with what getmessageoptions because i now only syncpoint or browsemessageundercursor are there any other options for deleting messages |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 25, 2008 6:05 am Post subject: Re: delete msgs from a Queue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ammar wrote: |
Get with what getmessageoptions because i now only syncpoint |
What?
ammar wrote: |
browsemessageundercursor |
You can't get a message with a browse. You get a message with a get.
ammar wrote: |
are there any other options for deleting messages |
Deleting messages is just about getting them. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
sagitwang |
Posted: Mon Dec 01, 2008 3:25 am Post subject: |
|
|
Novice
Joined: 01 Dec 2008 Posts: 13
|
|
Back to top |
|
 |
Vitor |
Posted: Mon Dec 01, 2008 3:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sagitwang wrote: |
use the get thing |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|