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 Installation/Configuration Support » Two senders to One receiver

Post new topic  Reply to topic
 Two senders to One receiver « View previous topic :: View next topic » 
Author Message
HenriqueS
PostPosted: Wed Sep 23, 2009 7:36 am    Post subject: Two senders to One receiver Reply with quote

Master

Joined: 22 Sep 2006
Posts: 235

Hello,

Is it possible in MQ to have two different QMs, each one with its own sender (but with the same name), commmunicating to a third QM having only one receiver?

I have seen some z/OS setups like that, where a screen like this is shown:

Code:

                             LIST CHANNELS - BCMS                   ROW 1 OF 46
                                                                                 
 TYPE ACTION CODES, THEN PRESS ENTER.  PRESS F11 TO DISPLAY CONNECTION STATUS. 
   1=DISPLAY   2=DEFINE LIKE   3=ALTER   4=MANAGE   5=PERFORM                   
   6=START     7=STOP                                                           
                                                                                 
      NAME                  TYPE          DISPOSITION   STATUS                   
  <>  *                     RECEIVER      QMGR    BCMS                           
      C00000000.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C00000208.00038166.2  RECEIVER      QMGR    BCMS  2 RUN                   
     C00360305.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C00517645.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C00997185.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C01701201.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C02038232.00038166.2  RECEIVER      QMGR    BCMS  INACTIVE                 
     C03323840.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C04913711.00038166.2  RECEIVER      QMGR    BCMS  INACTIVE                 
     C06043056.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C06271464.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
     C07207996.00038166.2  RECEIVER      QMGR    BCMS  RUN                     
                                                                               
 COMMAND ===>                                                                   
  F1=HELP      F2=SPLIT     F3=EXIT      F4=FILTER    F5=REFRESH   F7=BKWD     
  F8=FWD       F9=SWAPNEXT F10=MESSAGES F11=STATUS   F12=CANCEL                 


                    LIST CHANNELS - CURRENT STATUS - BCMS            ROW 1 OF 4
                                                                                 
 TYPE ACTION CODES, THEN PRESS ENTER.  PRESS F11 TO DISPLAY SAVED STATUS.       
   1=DISPLAY CURRENT STATUS                                                     
                                                                                 
     CHANNEL NAME         CONNECTION NAME                                  STATE
       START TIME           MESSAGES  LAST MESSAGE TIME   TYPE      DISPOSITION 
  <> C00000208.00038166.2                                 RECEIVER  PRIVATE BCMS
     C00000208.00038166.2 200.214.134.134                                  RUN   
       2009-09-23 04.48.12  0                             RECEIVER  PRIVATE BCMS
     C00000208.00038166.2 200.218.95.202                                   RUN   
       2009-09-21 21.18.00  93        2009-09-23 12.00.12 RECEIVER  PRIVATE BCMS
                       ******** End of list ********                             
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
 COMMAND ===>                                                                   
  F1=HELP      F2=SPLIT     F3=EXIT      F4=FILTER    F5=REFRESH   F7=BKWD     
  F8=FWD       F9=SWAPNEXT F10=MESSAGES F11=SAVED    F12=CANCEL                 


I tried to accomplish between 2 QMs laying on Linux and 1 QM hosted on Windows and started having sequencing problems. I could check the receiver channel status tough, and could see that there were 2 differnet connections coming in.

I looked the link at:

[URL]"http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzae.doc/ic12150_.htm [/URL]

"DQM in WebSphere MQ for distributed environments" manual and found nothing about this sort of setup.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 23, 2009 7:46 am    Post subject: Re: Two senders to One receiver Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

HenriqueS wrote:
Is it possible in MQ to have two different QMs, each one with its own sender (but with the same name), commmunicating to a third QM having only one receiver?


Yes. I've worked at a site that does exactly this.

I remain unconvinced the advantages of this outweigh the disadvantages, but that's a judgement call; I can see the advantages.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
HenriqueS
PostPosted: Wed Sep 23, 2009 8:28 am    Post subject: Re: Two senders to One receiver Reply with quote

Master

Joined: 22 Sep 2006
Posts: 235

I tried this type of setup to actually simplify an internal integration sceario I have at my shop.

But, still, when you accomplished this, did you have any problems with sequencing? How the receiver QM keeps control of the message sequencing?

More, any idea where to find documentation on this subject?

Vitor wrote:
HenriqueS wrote:
Is it possible in MQ to have two different QMs, each one with its own sender (but with the same name), commmunicating to a third QM having only one receiver?


Yes. I've worked at a site that does exactly this.

I remain unconvinced the advantages of this outweigh the disadvantages, but that's a judgement call; I can see the advantages.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 23, 2009 8:37 am    Post subject: Re: Two senders to One receiver Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

HenriqueS wrote:
I tried this type of setup to actually simplify an internal integration sceario I have at my shop.


That was the principle reason touted at this site.

HenriqueS wrote:
But, still, when you accomplished this, did you have any problems with sequencing? How the receiver QM keeps control of the message sequencing?


The receiver QM doesn't control sequencing; the receiver MCA(s) do. We didn't have problems in normal use, but resolving channel issues was far more complex. This was one of my objections to this set up.

HenriqueS wrote:
More, any idea where to find documentation on this subject?


I've not seen this documented anywhere, and do not believe this is IBM's recommended set up. I'm ready to be corrected on either or both of these points.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Sep 23, 2009 3:04 pm    Post subject: Re: Two senders to One receiver Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Vitor wrote:
I've not seen this documented anywhere, and do not believe this is IBM's recommended set up. I'm ready to be corrected on either or both of these points.

Found this: http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzae.doc/ic10540_.htm but could not find anything more detailed.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 23, 2009 3:07 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Again I learn.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Bill.Matthews
PostPosted: Wed Sep 23, 2009 3:22 pm    Post subject: Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

Keep in mind that what the doc is describing is a single Receiver Channel definition - and that definition is used as a base definition to create a separate physical channel at runtime when the Sender channel makes a connection request.

Look back at the example you quoted - there are multiple receiver channels running with the same name. ...

So, yes, you can make the channels definition task easier - but you must make sure that you MQ sys ops understand how to manage these multiple channels with the same name - or be prepared to explain why a good channel was killed while a bad channel by the same name was not.

Personally, I'd go with unique channel names - those are a lot easier to explain when you get called in the middle of the night - when the above has happened.
_________________
Bill Matthews
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Sep 23, 2009 3:29 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Bill.Matthews wrote:
... a lot easier to explain when you get called in the middle of the night - when the above has happened.

This is the requirement most often missed by architects these days, IMHO.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 23, 2009 3:33 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Bill.Matthews wrote:
Personally, I'd go with unique channel names - those are a lot easier to explain when you get called in the middle of the night - when the above has happened.




Managing this is surprisingly tricky. Even during the day time with everyone round a table.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 23, 2009 3:34 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mvic wrote:
Bill.Matthews wrote:
... a lot easier to explain when you get called in the middle of the night - when the above has happened.

This is the requirement most often missed by architects these days, IMHO.


It's amazing how few architects do overnight support.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 Installation/Configuration Support » Two senders to One receiver
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.