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 Java / JMS » How bindings file in mq works

Post new topic  Reply to topic
 How bindings file in mq works « View previous topic :: View next topic » 
Author Message
sijtom0703
PostPosted: Wed Jun 12, 2013 8:29 pm    Post subject: How bindings file in mq works Reply with quote

Voyager

Joined: 28 May 2011
Posts: 84
Location: USA

I have a set of inbound queues in one queue manager in server A and another set of outbound queues in a different queue manager with same name in server B.
When the Application makes calls through bindings file generated from the below config will the App be able to locate the queues in the correct queue manager?

def qcf(ivtcfA) qmgr(QM1) transport(client) hostname(serverA) channel(SYSTEM.MQS.SVRCONN) port(2434) clientid(App1)
def qcf(ivtcfB) qmgr(QM1) transport(client) hostname(serverB) channel(SYSTEM.MQS.SVRCONN) port(2434) clientid(App1)
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 13, 2013 5:07 am    Post subject: Re: How bindings file in mq works Reply with quote

Grand High Poobah

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

sijtom0703 wrote:
I have a set of inbound queues in one queue manager in server A and another set of outbound queues in a different queue manager with same name in server B.


This is not a good idea. This will confuse WMQ's name resolution and cause you all sorts of problems, like this. Your app will connect to a queue manager by name and to only one queue manager. Hence (depending on which one it finds) one set of queues will not be found.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sijtom0703
PostPosted: Thu Jun 13, 2013 6:46 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2011
Posts: 84
Location: USA

Thanks Vitor for the reply

I was under the assumption when an Application lookup for an object it looks up to a connection factory first then the objects in that CF.
Here the connection factory points to two different servers which is correctly defined in the config header. So there would be no confusion for Application in identifying the mq objects.

So what do you recommend here. Put all the queues in one queue manager in the same server.?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 13, 2013 6:52 am    Post subject: Reply with quote

Grand High Poobah

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

sijtom0703 wrote:
Here the connection factory points to two different servers which is correctly defined in the config header. So there would be no confusion for Application in identifying the mq objects.


Well, I'm the last person to take a stand on Java issues. It may be it will work as you say, but if you're that sure why did you ask? At best you'll have 2 apparently identical connections.

Try it. Post your results.

sijtom0703 wrote:
Put all the queues in one queue manager in the same server.?


Connections are expensive and should be kept to a minimum. I also repeat my comments about having 2 identically named queue managers on 2 differrent servers. I've yet to see a convinicing benefit from doing this and it causes all sorts of problems.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
calanais
PostPosted: Fri Jun 14, 2013 7:14 am    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2010
Posts: 32

There are two definitions of connection factories there; each will be bound into JNDI with different names. When the application gets these out of JNDI, it will be able to create a JMS connection from either one.

It looks like you've got two hosts with identically configured QMs? The JMS application will be able to have connections to both of them - depending on which connection you then use to create producers/consumers will control what set of queues are used.

There's no problem with this type of configuration so long as the application knows where it's going to.
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 Java / JMS » How bindings file in mq works
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.