|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting Userdata in MQ Trigger Message? |
« View previous topic :: View next topic » |
Author |
Message
|
HMed |
Posted: Fri Jul 08, 2005 3:47 pm Post subject: Setting Userdata in MQ Trigger Message? |
|
|
Novice
Joined: 17 Sep 2004 Posts: 17 Location: Camp Hill, PA. - USA
|
Is it possible to set the Trigger Message User Data field (MQCHAR128 on MQTM Structure) on the receiving trigger structure ... from a java program on the sending side, or is the data in this field only set when the queue is initially created (process definition) ?
How does MQ_PROCESS_USER_DATA_LENGTH tie into it? I see documentation where I can set this from my java program, but can't find any examples in the MQ documentation on how to actually set the User Data itself.
Any assistance or clarification is greatly appreciated.
Thanks,
Ed. |
|
Back to top |
|
 |
vennela |
Posted: Fri Jul 08, 2005 3:55 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
What s that you are trying to achieve |
|
Back to top |
|
 |
HMed |
Posted: Fri Jul 08, 2005 4:08 pm Post subject: |
|
|
Novice
Joined: 17 Sep 2004 Posts: 17 Location: Camp Hill, PA. - USA
|
Well, I want to send some additional data to the receiver.
Why not just put the additional data in the message?, you might ask.
The application is already designed and has been in use for a number of years. Additional data in the message would require much coordination amongst other users, so it looked like I might be able to use the MQTM UserData field.
Is it possible? |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jul 08, 2005 5:28 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Maybe, if you want to write your own trigger monitor.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
HMed |
Posted: Mon Jul 11, 2005 3:04 am Post subject: |
|
|
Novice
Joined: 17 Sep 2004 Posts: 17 Location: Camp Hill, PA. - USA
|
Well, if I were to write my own trigger monitor, then what I would actually be monitoring is on the receiving side.
What I want to know is if it is possible to set the Trigger Message User Data field (MQCHAR128 on MQTM Structure) of the receiving trigger structure ... from a java program on the sending side.
Does anybody know if this is possible, or is the data in the Trigger Message User Data (MQCHAR128 on MQTM Structure) field only set when the queue is initially created (process definition) ?
Any assistance or clarification is greatly appreciated.
Thanks,
Ed. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jul 11, 2005 3:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The MQTM/MQTMC2 structure is only created by the trigger monitor, from the contents of the inititation message.
The initiation message is created by MQ, from the definition of the queue and process.
It would be possible, I believe, to write code that would use MQSET to dynamically adjust the process definition.
And it's certainly possible to write code to create your own initiation message - this is why trigger monitors are security risks. _________________ 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
|
|
|
|