|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Getting the clnt conn channel name frm QMgr conn using java |
« View previous topic :: View next topic » |
Author |
Message
|
urspradeep330 |
Posted: Tue Nov 30, 2010 5:38 am Post subject: Getting the clnt conn channel name frm QMgr conn using java |
|
|
Newbie
Joined: 26 Jun 2009 Posts: 9
|
Hi ,
We have a java application which does the mq operations. We have implemented Queue Manager fail over mechanism in MQ7 for this application. Our java application is able to connect to the different qmgr when the other is down.
My Question :
1. Is there any way where i can get the Queue manager to which my application is currently connected?
2. Is there any api through which i can get the client connection channel through which my application is currenly connected to the queue manger?
Regards
L.Pradeep |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 30, 2010 5:52 am Post subject: Re: Getting the clnt conn channel name frm QMgr conn using j |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
urspradeep330 wrote: |
Hi ,
We have a java application which does the mq operations. We have implemented Queue Manager fail over mechanism in MQ7 for this application. Our java application is able to connect to the different qmgr when the other is down.
My Question :
1. Is there any way where i can get the Queue manager to which my application is currently connected?
2. Is there any api through which i can get the client connection channel through which my application is currenly connected to the queue manger?
Regards
L.Pradeep |
Describe the fail over mechanism used.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Nov 30, 2010 8:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Your application very very likely does not need any of the information you are trying to get from it.
If you are using Multi-Instance qmgrs in v7, then you are never connected to "a different" queue manager, just the same queue manager on a different host.
This is also true if you're using a non-MI HA technology, like HACMP or Veritas or etc.
It's only if you use a CCDT with more than one entry for the same logical qmgr name that you will ever connect to "a different" queue manager.
Your application SHOULD NOT make any BUSINESS decisions based on which qmgr it is connected to, nor based on what channel it is using to do so.
Your application SHOULD NOT be reporting any information about a failover. At the most, you will report that you lost your connection and then reestablished it. The MQ admin team should be monitoring the queue manager on their own and reporting that it failed over at a given time and was successful or not.
To what purpose do you intend to put the information you are trying to get? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|