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 » User Exits » Can a channel exit route messages ?

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 Can a channel exit route messages ? « View previous topic :: View next topic » 
Author Message
fjb_saper
PostPosted: Fri Jun 25, 2010 11:01 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Mr Butcher wrote:
i dont understand the question. for me it makes no difference. the exit can modify the queue name or leave it. the new target may apply to a local defined qlocal ueue, to a local definition of a remote queue or to a remote queue (in that case the qmgr must be known). that thats the same in every case, with or without exit.

there are may "and if" questions. as i wrote before, it depends on the situation. ... and in some situations i would use that exit solution. in some not.

Sure but what I don't quite get is how the exit will deal with CCSID translations. Remember that this is supposed to handle content routing.
Messages can come from multiple sources and with multiple CCSIDs...
An application that does the routing can take advantage of MQ's automatic CCSID translation...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Fri Jun 25, 2010 11:39 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

I don't see CCSID as an issue.

For CONVERT(YES) on sender, sender platform does conversion, no issue.

On receiving end, consuming app MQGMO_CONVERT drives conversion after message arrives on destination queue, wherever that might be - no issue.

Am I missing something?

[edit]Now I see it: if the CCSIDs of sending and receiving ends are different, AND the consuming app intends to MQGMO_CONVERT, the exit will inherit the unconverted message. How would the exit app look at the payload? Do a hone-grown conversion in the exit?

Ah! What could possibly go wrong?

_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.


Last edited by bruce2359 on Fri Jun 25, 2010 2:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Jun 25, 2010 12:07 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Moved to User Exits.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Jun 25, 2010 1:15 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

And I suppose what we are all missing here, is the fact that a channel exit cannot (strictly speaking) route a message; change RNAME and/or RQMNAME, yes, but for it to alter the route it would have to have the ability to put it on another transmission queue from that which the channel agent has pulled it, and that aspect of using an exit opens up a whole new can of worms...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Jun 25, 2010 1:58 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

The APR (or APG) says that all MQI calls can be used in an exit, but recommends that exits not use MQBEGIN, MQCMIT, MQBACK. Worms, indeed.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Fri Jun 25, 2010 2:35 pm    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

exerk wrote:
And I suppose what we are all missing here, is the fact that a channel exit cannot (strictly speaking) route a message; change RNAME and/or RQMNAME, yes, but for it to alter the route it would have to have the ability to put it on another transmission queue from that which the channel agent has pulled it, and that aspect of using an exit opens up a whole new can of worms...


Yes. And that's what i was trying to suggest when i said

fatherjack wrote:
And if the destination queue is on a different queue manager?


Sure you can change the destination queue name in the exit to something which may be a remote queue def on the destination qmgr or even change both the destination queue and queue manager names but then there's potentially a whole bunch of MQ admin to make sure messages can get to all ultimate destination queues, not to mention the mapping data the exit needs access to in order to derive the destination queue and queue manager names.

It all just seems a bit tricky to me when there are much simpler solutions.
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3 Page 3 of 3

MQSeries.net Forum Index » User Exits » Can a channel exit route messages ?
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.