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 » WebSphere Message Broker (ACE) Support » Getting the clnt conn channel name frm QMgr conn using java

Post new topic  Reply to topic
 Getting the clnt conn channel name frm QMgr conn using java « View previous topic :: View next topic » 
Author Message
urspradeep330
PostPosted: Tue Nov 30, 2010 5:38 am    Post subject: Getting the clnt conn channel name frm QMgr conn using java Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 30, 2010 5:52 am    Post subject: Re: Getting the clnt conn channel name frm QMgr conn using j Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Nov 30, 2010 8:28 am    Post subject: Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » Getting the clnt conn channel name frm QMgr conn using java
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.