Author |
Message
|
narayanarvr |
Posted: Sun Sep 21, 2014 10:09 pm Post subject: How an Application can connect to three queue managers |
|
|
 Voyager
Joined: 09 Oct 2012 Posts: 84
|
Hi All,
can any one of you give me how an Application can connect to 3 queue managers simultaneously at a time and get or put data into them ?
Thanks,
Venkata. |
|
Back to top |
|
 |
hughson |
Posted: Mon Sep 22, 2014 2:15 am Post subject: Re: How an Application can connect to three queue managers |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
narayanarvr wrote: |
Hi All,
can any one of you give me how an Application can connect to 3 queue managers simultaneously at a time and get or put data into them ?
Thanks,
Venkata. |
An application can make three connections (MQCONNs) to three different queue managers. Each hConn represents the queue manager it is connected to. That hConn can then be used to MQOPEN queues on that specific queue manager and put or get messages to/from those queues.
Perhaps there is more to your question though? Would you like to expand further what you need to do? You use the word 'simultaneously' which suggests a requirement that you haven't elaborated.
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
narayanarvr |
Posted: Mon Sep 22, 2014 2:21 am Post subject: |
|
|
 Voyager
Joined: 09 Oct 2012 Posts: 84
|
I got this question when I attended an interview, they want to send 10 messages to all the 3 queue mangers, means 10 messages to each queue manager at a time, application should send these messages. |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 22, 2014 2:29 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
More conventionally an application connects to one QM (often local to it) and remote queues deliver the messages to other QMs. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
hughson |
Posted: Mon Sep 22, 2014 2:46 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
narayanarvr wrote: |
I got this question when I attended an interview, they want to send 10 messages to all the 3 queue mangers, means 10 messages to each queue manager at a time, application should send these messages. |
So this question is different to the first one you asked. Now you say "send" whereas before you said "connect", zpat has provided you with a good answer.
So I take it you don't have any other details, you're just curious as to whether the answer you gave in your interview was the correct one? If so, what answer did you give?
Cheers
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
narayanarvr |
Posted: Mon Sep 22, 2014 2:49 am Post subject: |
|
|
 Voyager
Joined: 09 Oct 2012 Posts: 84
|
Morag,
I asked them to use DQM for doing this requirement or Pub / Sub but they are not satisfied.
Thanks,
Venkata |
|
Back to top |
|
 |
hughson |
Posted: Mon Sep 22, 2014 3:16 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
narayanarvr wrote: |
Morag,
I asked them to use DQM for doing this requirement or Pub / Sub but they are not satisfied.
Thanks,
Venkata |
They are not satisfied with your answer? What did they say? _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
narayanarvr |
Posted: Mon Sep 22, 2014 3:17 am Post subject: |
|
|
 Voyager
Joined: 09 Oct 2012 Posts: 84
|
They said there is some other way, but they did not tell anything, skipped and went to next question |
|
Back to top |
|
 |
hughson |
Posted: Mon Sep 22, 2014 3:31 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
narayanarvr wrote: |
They said there is some other way, but they did not tell anything, skipped and went to next question |
The other thing I can think of might be Distribution Lists, but these days you'd be better off with Pub/Sub. _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
narayanarvr |
Posted: Mon Sep 22, 2014 4:20 am Post subject: |
|
|
 Voyager
Joined: 09 Oct 2012 Posts: 84
|
Morag,
Thank you very much for your quick reply.
Thanks,
Venkata |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Sep 22, 2014 4:46 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
narayanarvr wrote: |
They said there is some other way, but they did not tell anything, skipped and went to next question |
They wanted to assess your technical understanding of the MQ product; and, more importantly, your ability to communicate that understanding to others.
The question was an "open-ended" type question, as interview questions often are. As with other interview questions, there were (are) a variety of possible answers, as can be found in the MQ documentation - including the Knowledge Center. Answers can also be found from hands-on experience. Your intverviewers were looking for how well you could communicate with others when the question was (perhaps) not a specific question. Perhaps they were really asking 'can you name five ways to ...'.
Each answer may require that you offer further explanation. So, 'yes, but...' would be the shortest, technically correct answer. Your task in an interview is to elaborate the variety of configurations where 'connecting' or 'sending' can be accomplished.
'Send' is not an MQ term. Messages can be 'sent' across an MQ channel qmgr-to-qmgr. Messages can also be MQPUT from an MQ Client application to a qmgr. These are just starting points for such a conversation. _________________ 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 |
|
 |
immaculate |
Posted: Sun Sep 28, 2014 11:50 pm Post subject: How an Application can connect to three queue managers |
|
|
Novice
Joined: 15 Sep 2014 Posts: 17
|
@narayanarvr
Applications can connect to 2 or more queue managers using channel tab (CCDT) file. |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 29, 2014 1:41 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
That's a non-sequitur.
CCDT just supplies connection details to the app. In itself it does not cause multiple connections. Nor is its use required to do so. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
|