Author |
Message
|
Gama |
Posted: Tue Nov 21, 2006 9:55 am Post subject: CorrelId reset/random |
|
|
 Centurion
Joined: 11 Jan 2005 Posts: 103 Location: Portugal
|
Hello all,
I'm using the "propagate;" and the output message has the same MsgId and CorrelId, but i need to overite the CorrelId with a random id.
is that possible?
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 21, 2006 10:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Change the properties of the MQOutput node to generate a new correlation id.
Don't generate a 'random' one, let the queue manager do it for you. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Gama |
Posted: Wed Nov 22, 2006 2:30 am Post subject: |
|
|
 Centurion
Joined: 11 Jan 2005 Posts: 103 Location: Portugal
|
jefflowrey wrote: |
Change the properties of the MQOutput node to generate a new correlation id.
Don't generate a 'random' one, let the queue manager do it for you. |
Tanks jefflowrey, it works fine and it's too simple...
It's is possible force que property with ESQL syntax?
Thanks and best regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Nov 22, 2006 2:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes, you can update OutputRoot.MQMD.CorrelId with a value before you invoke the MQOutput node.
But it's really not a great idea, design wise. The queue manager will generate a new id that is guaranteed to be unique across your entire qmgr network (assuming you have not made two queue managers with the same name!) _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Gama |
Posted: Wed Nov 22, 2006 2:48 am Post subject: |
|
|
 Centurion
Joined: 11 Jan 2005 Posts: 103 Location: Portugal
|
jefflowrey wrote: |
Yes, you can update OutputRoot.MQMD.CorrelId with a value before you invoke the MQOutput node.
But it's really not a great idea, design wise. The queue manager will generate a new id that is guaranteed to be unique across your entire qmgr network (assuming you have not made two queue managers with the same name!) |
Ok,
I will folow your sugestion.
Thanks a lot. |
|
Back to top |
|
 |
|