Posted: Tue Jul 01, 2003 11:40 am Post subject: Intercept message userid
Apprentice
Joined: 05 May 2003 Posts: 35
I have a broker which receives MQ messages from different clients using different userids in order to register these clients in our system. I need to intercept the userid that the incoming message (from the client) holds and change that to the general broker system userid.
the reason is that the broker parses the incoming message fields from different clients on different machines and based on these message values the broker registers these machines (clients) as subscribers. If each client uses different userid in the messages, the broker registers them under differnt userids which is not acceptable in our applications.
Instead, we need to change the userid in the incoming message before registering the client in the WMQI broker.
I tried to change the useridentifier in the input message descriptor but that didn't work.
[quote="asalema]I tried to change the useridentifier in the input message descriptor but that didn't work.[/quote]
You probably wanted to change it on your output message descriptor inside your broker message flow instead of the input message descriptor.
You probably also need to set the right option to allow for the user context to be set on the MQOutput node that sends the subscription registration to the broker.
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