Author |
Message
|
sebastia |
Posted: Fri Feb 07, 2014 1:04 am Post subject: how to set "PUT(DISABLED)" or CLWLPRTY from a flow |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
In order to influence the cluster workload algorithm, I would like to test if I can set a cluster queue parameter "PUT(ENABLED)" to "put(disabled)" from a mb flow.
In fact, I dont like put(disabled) because you cant disable all instances of a cluster queue. I think changing the CLWLPRTY is better, as you never get to a situation with no queues available.
So I can change my question to :
how can I change CLWLPRTY from a MB flow ?
Thanks for any URLS or sugestions.
Sebastian. |
|
Back to top |
|
 |
Esa |
Posted: Fri Feb 07, 2014 3:05 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
By sending a PCF message to the queue managers command queue. |
|
Back to top |
|
 |
sebastia |
Posted: Fri Feb 07, 2014 3:07 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Yes, guess you are talking about a "Java node", rigth ?
Any code sample ?? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Feb 07, 2014 3:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Well, you could easily construct a BLOB message in ESQL that happened to contain a PCF Change Queue command.
For some value of 'easily'. |
|
Back to top |
|
 |
sebastia |
Posted: Fri Feb 07, 2014 4:25 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Jeff - good idea, but I still need some sample. I am quite green (new) on MB.
Now I am reading \ms0b\com.ibm.mq.pcf\examples\ ...
Cheers ! Sebastian. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Feb 07, 2014 5:13 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Take a look at the AMQSCLM program that now ships with MQ.
http://pic.dhe.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/fg17980_.htm
Quote: |
This sample uses the built-in WebSphere® MQ cluster workload balancing features to direct messages to instances of queues that have consuming applications attached. This automatic direction prevents the build-up of messages on an instance of a cluster queue to which no consuming application is attached. |
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Feb 07, 2014 6:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
sebastia |
Posted: Sat Feb 08, 2014 4:48 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Thanks both, guys - you both point me to the same article, even on diferent mq versions, jejeje - mr Peter -> 7.1, mr Saper -> 7.5
Will read in a minute.
But in our situation (see bellow), the consumer is always there - it is a MB flow.
And I think resending messages is not the way to go - you can get into a loop !
More on Monday ! Have to play tennis this evening .... jejeje
Sebastian. |
|
Back to top |
|
 |
sebastia |
Posted: Sat Feb 08, 2014 5:04 am Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
I see you also got my other "half" of the question.
Thanks a lot for your help.
Would like to pay you a beer if you come to Barcelona, as Michael did ( )
Sebastian. |
|
Back to top |
|
 |
Studv01 |
Posted: Sun Aug 28, 2016 10:36 am Post subject: |
|
|
Apprentice
Joined: 23 Jan 2015 Posts: 27
|
the above urls are not working for me. need similar help with Version 8.0 |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Aug 28, 2016 8:16 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
|