| Author |
Message
|
| Vitor |
Posted: Tue Nov 07, 2006 6:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Your explaination was fine. My brain shorted out & I developed this sort of blind spot over the part a few posts back when I told you it was a Message Broker turning up on the queue status display....
| Vitor wrote: |
| "dataFlowEngine" sounds more like a Message Broker than an MCA to me - certainly that's what the "DataFlowEngine" in my example is!! |
Happy Documentation Reading!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| Blomman |
Posted: Tue Nov 07, 2006 6:51 am Post subject: |
|
|
Master
Joined: 31 Oct 2006 Posts: 230
|
Hi!
Ok i found this ESQL:
| Code: |
CREATE PROCEDURE addToMQDestinationList(IN LocalEnvironment REFERENCE, IN newQueue char) BEGIN
/*******************************************************************************
* A procedure that will add a queue name to the MQ destination list
* in the local environment.
* This list is used by a MQOuput node which has its mode set to Destination list.
*
* IN LocalEnvironment: LocalEnvironment to be modified.
* Set this to OutputLocalEnvironment when calling this procedure
* IN queue: queue to be added to the list
*
*******************************************************************************/
DECLARE I INTEGER CARDINALITY(LocalEnvironment.Destination.MQDestinationList.DestinationData[]);
IF I = 0 THEN
SET LocalEnvironment.Destination.MQDestinationList.DestinationData[1].queueName = newQueue;
ELSE
SET LocalEnvironment.Destination.MQDestinationList.DestinationData[I+1].queueName = newQueue;
END IF;
END;
|
And where do i specify my Qs in the destination list?
And i suppose that i just put the ESQL on my compute node and sets the output node to property "destination list".
Im sorry i am a newbie as u can se..
/Blomman |
|
| Back to top |
|
 |
| jefflowrey |
Posted: Tue Nov 07, 2006 7:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
In that code, your Q's are passed as the "newQueue" parameter to that function.
And, yes, set the output node property to DestionationList.
BUT PLEASE GET SOME TRAINING.
WMB is a complicated product and not easy to learn on your own - and you're not likely to get a lot of training here. _________________ I am *not* the model of the modern major general. |
|
| Back to top |
|
 |
| Vitor |
Posted: Tue Nov 07, 2006 7:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
| Blomman wrote: |
And where do i specify my Qs in the destination list?
And i suppose that i just put the ESQL on my compute node and sets the output node to property "destination list".
Im sorry i am a newbie as u can se..
/Blomman |
The bit where the ESQL sets ".queueName" is a clue....
There's a matching attribute ".queueManagerName" you might want to research.
You'll need to set the compute node and output node attributes to ensure the list is passed forwards. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
| Back to top |
|
 |
| Blomman |
Posted: Tue Nov 07, 2006 9:49 am Post subject: |
|
|
Master
Joined: 31 Oct 2006 Posts: 230
|
Ok ok im training, but i have no teacher...Forums and documentation is my teacher for now...
So i simply create the procedure....
And then calling it and set my queues as parameters??
addToMQDestinationList(OutputLocalEnvironment , MyQ)
//adding my second Q to the list
addToMQDestinationList(OutputLocalEnvironment , MyQ2)
I used to program Java many years ago so thats all i can refer too..
/Blomman |
|
| Back to top |
|
 |
| Blomman |
Posted: Wed Nov 08, 2006 1:35 am Post subject: |
|
|
Master
Joined: 31 Oct 2006 Posts: 230
|
Perhaps i just can do it like this:
| Code: |
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[1].queueName = 'QUEUE1';
SET OutputLocalEnvironment.Destination.MQDestinationList.DestinationData[2].queueName = 'QUEUE2';
|
Maybe it would be nicer to use the procedure, but i cant figure out how to call the procedure and put in my Qs as parameters.
/Blomman |
|
| Back to top |
|
 |
|
|