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 » General Discussion » Setting up 2 different transmission qs for sender channel

Post new topic  Reply to topic
 Setting up 2 different transmission qs for sender channel « View previous topic :: View next topic » 
Author Message
prateekmquser
PostPosted: Tue Jan 25, 2011 6:36 am    Post subject: Setting up 2 different transmission qs for sender channel Reply with quote

Newbie

Joined: 25 Jan 2011
Posts: 2

I have a test case for which I want to configure MQ for a clustered environment.
I want to configure a channel in a QM such that it picks up messages from two different transmission queues.
Is such a configuration possible?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Jan 25, 2011 6:46 am    Post subject: Re: Setting up 2 different transmission qs for sender channe Reply with quote

Grand High Poobah

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

prateekmquser wrote:
Is such a configuration possible?


Not in a cluster.

Depending on what exactly you're trying to do it's possible you can achieve the same ends by different means.

If you're just testing for the sake of testing then tick the "no" box and move to the next test.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jan 25, 2011 6:58 am    Post subject: Reply with quote

Poobah

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

Quote:
I have a test case for which I want to configure MQ for a clustered environment.

A configuration other than explained/defined in the WMQ Clusters manual?
_________________
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
mqjeff
PostPosted: Tue Jan 25, 2011 7:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I am confused.

What properties of channels control which xmitq they use? What does the documentation say on those properties? What values are allowed?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 25, 2011 3:17 pm    Post subject: Reply with quote

Grand High Poobah

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

Haven't seen that scenario much. The usual one is 2 chls sharing an xmitq but there is only one that can be in a running status at a time ...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
prateekmquser
PostPosted: Wed Jan 26, 2011 2:26 am    Post subject: Reply with quote

Newbie

Joined: 25 Jan 2011
Posts: 2

Is there such a scenario possible if there is no cluster?
I want to configure two different transmission queues for one sender channel. When you define a sender channel you have to specify a transmission queue for that from where it picks up the message.
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Wed Jan 26, 2011 2:53 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

prateekmquser wrote:
... When you define a sender channel you have to specify a transmission queue for that from where it picks up the message...


Well spotted...you might also wish to see the options an MCA makes when it opens an XMITQ, which will give you a big clue as to why what you want to do is not a good idea. What possible earthly reason do you have for this 'requirement'?
_________________
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: Wed Jan 26, 2011 6:45 am    Post subject: Reply with quote

Poobah

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

Quote:
I want to configure a channel in a QM such that it picks up messages from two different transmission queues.

What is the objective of this test? What outcome do you expect from this test? How would this configuration be used at your shop?
Quote:
Is such a configuration possible?

At the sending of a channel, the Message Channel Agent, not the qmgr, gets messages from a single transmission queue, and sends the messages to its partner MCA at the receiving end.

The sending MCA opens the xmit queue INPUT_EXCLUSIVE so that other MCAs and applications cannot consume messages from the xmit queue.

So, no, it is not possible to have multiple sender channels getting messages from a single xmit queue. This makes sense if you understand the purpose of a message channel, message channel agents, and how messages are sent in batches and units of work.

The WMQ Intercommunications manual is a great resource for understanding channels.
_________________
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
mqjeff
PostPosted: Wed Jan 26, 2011 6:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It's not possible to have more than one channel actively reading from the same XMITQ at the same time.

It is likewise not possible to put more than one queue name into any XMITQ parameter.

So it is not possible to have one channel actively reading from TWO XMITQs at the same time..

The product simply does not work this way, as is clearly documented.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Jan 26, 2011 7:13 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

i do not see the need to have 1 channel process 2 xmitqs. you can do proper mq object definitions and all will end up in 1 xmitq.

if you have 2 xmitqs A and B and 2 channels A and B, and A is down and you want to send it all to B, then you can have a second channel for XMTIQA, or move the messages from XMITQ A to XMITQ B.

maybe tell us more what kind of situation you are trying to cover with your 2xmitq-1channel relationship
_________________
Regards, Butcher
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 26, 2011 8:55 pm    Post subject: Reply with quote

Grand High Poobah

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

Mr Butcher wrote:

if you have 2 xmitqs A and B and 2 channels A and B, and A is down and you want to send it all to B, then you can have a second channel for XMTIQA, or move the messages from XMITQ A to XMITQ B.

maybe tell us more what kind of situation you are trying to cover with your 2xmitq-1channel relationship



I would say it is cleaner to have a third channel definition (C) using the same XMITQ A As channel A is down there should not be a problem getting exclusive input for channel C on XMITQA. And no need to move any messages from xmitq A to xmitq C...

This would lead to 1xmitq 2channels relationship as opposed to 2 xmitqs 1 channel ...


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Thu Jan 27, 2011 1:30 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

fjb_saper wrote:
...I would say it is cleaner to have a third channel definition (C) using the same XMITQ A As channel A is down there should not be a problem getting exclusive input for channel C on XMITQA. And no need to move any messages from xmitq A to xmitq C...

This would lead to 1xmitq 2channels relationship as opposed to 2 xmitqs 1 channel ...


Although it should be borne in mind that the 'back-up' channel may fail to start for the same reason that caused the 'primary' channel to fail in the first place, which is why I wonder at the utility that the OP is looking for
_________________
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: Thu Jan 27, 2011 6:23 am    Post subject: Reply with quote

Poobah

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

Quote:
the 'back-up' channel may fail to start for the same reason that caused the 'primary' channel to fail in the first place,

Having a second or third sender channel standing by in case the first one fails sounds like a fine idea, and a simple solution.

Will you have a 2nd or 3rd nic card, too? Will you have a 2nd or 3rd network path between qmgrs? Will you have a 2nd or 3rd NAT box? A 2nd or 3rd qmgr instance? A 2nd or 3rd computer facility?

When contemplating any disaster-recovery scenario like this one, start by listing the top 5 or 10 reasons that a channel would fail. Then brainstorm a solution for each.
_________________
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: Thu Jan 27, 2011 6:52 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

bruce2359 wrote:
Having a second or third sender channel standing by in case the first one fails sounds like a fine idea, and a simple solution.


My point was that if the 'primary' channel goes down, e.g. queue full and/or no DLQ available or full at the receiving end, the 'back-up' channel is going to be of as much use as a chocolate fireguard, not that it was a bad idea. I was just trying to elicit from the OP his requirement.
_________________
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: Thu Jan 27, 2011 7:19 am    Post subject: Reply with quote

Poobah

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

completely.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Setting up 2 different transmission qs for sender channel
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.