Posted: Thu Nov 27, 2003 11:13 pm Post subject: Can Channel exits be operated on selected messages?
Voyager
Joined: 20 Dec 2001 Posts: 88
Hi
My Scenario,
I have DQM implementation(one sender/receiver on both the queue managers) in my application. One of the message which goes to target qmgr carries "PASSWORD" . I want to encrypt/decrypt only this message, not all messages.
How can I achieve this? If I write a channel exit, can I make that channel exit operates on only selected messages.
Assuming you are using the same channel to transport different types of messages, you would have to build logic in the exit to make the determination to encrypt. You should then have the Exit modify a byte in the TSH to indicate the message has been encrypted. This byte would trigger the de-encryption process on the receiving side. The Intercommunication Guide discusses this approach.
Alternatively, you could define a channel exclusively for this message type and configure this channel with the exit. Routing to the channel would be "managed" by the XMITQ value on the QRemote definition.
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