ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Setting Userdata in MQ Trigger Message?

Post new topic  Reply to topic
 Setting Userdata in MQ Trigger Message? « View previous topic :: View next topic » 
Author Message
HMed
PostPosted: Fri Jul 08, 2005 3:47 pm    Post subject: Setting Userdata in MQ Trigger Message? Reply with quote

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
View user's profile Send private message Send e-mail
vennela
PostPosted: Fri Jul 08, 2005 3:55 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

What s that you are trying to achieve
Back to top
View user's profile Send private message Send e-mail Visit poster's website
HMed
PostPosted: Fri Jul 08, 2005 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Fri Jul 08, 2005 5:28 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
Is it possible

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
View user's profile Send private message
HMed
PostPosted: Mon Jul 11, 2005 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Jul 11, 2005 3:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Setting Userdata in MQ Trigger Message?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.