Author |
Message
|
suneel |
Posted: Thu May 10, 2012 12:51 am Post subject: MQRC 2082 |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
Hi Team,
i am facing an issue. When application is trying to get the message from alias queue through SVRCONN channel it is getting 2082, but when it is connecting to direct cluster local queue which is target queue of ALIAS queue it is working fine. Any thing i need to check at MQ end?
ALIAS queue DEFBIND is NOTFIXED
TIA |
|
Back to top |
|
 |
suneel |
Posted: Thu May 10, 2012 12:59 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
PFB definitions
AMQ8409: Display Queue details.
QUEUE(MS.AL.VWM.MET_OR_MET_TO_VWM_RES.01)
TYPE(QALIAS) ALTDATE(2012-04-27)
ALTTIME(22.29.16)
TARGET(MS.CL.METVWMP2.EMB.MET_OR_MET_TO_VWM_RES.01)
CLUSNL( ) CLUSTER( )
CLWLPRTY(0) CLWLRANK(0)
DEFBIND(NOTFIXED) DEFPRTY(0)
DEFPSIST(YES) DEFPRESP(SYNC)
DEFREADA(NO)
DESCR(MQ05652 : AliasQueue for MS.QM.EMB401P3)
GET(ENABLED) PUT(ENABLED)
PROPCTL(COMPAT) SCOPE(QMGR)
TARGTYPE(QUEUE)
Code: |
dis ql(MS.CL.METVWMP2.EMB.MET_OR_MET_TO_VWM_RES.01) all
2 : dis ql(MS.CL.METVWMP2.EMB.MET_OR_MET_TO_VWM_RES.01) all
AMQ8409: Display Queue details.
QUEUE(MS.CL.METVWMP2.EMB.MET_OR_MET_TO_VWM_RES.01)
TYPE(QLOCAL) ACCTQ(QMGR)
ALTDATE(2012-04-27) ALTTIME(22.29.16)
BOQNAME( ) BOTHRESH(0)
CLUSNL( ) CLUSTER(MS.CL.METVWMP2)
CLWLPRTY(0) CLWLRANK(0)
CLWLUSEQ(QMGR) CRDATE(2012-04-27)
CRTIME(22.29.16) CURDEPTH(0)
DEFBIND(NOTFIXED) DEFPRTY(0)
DEFPSIST(YES) DEFPRESP(SYNC)
DEFREADA(NO) DEFSOPT(SHARED)
DEFTYPE(PREDEFINED)
DESCR(MQ05652 : ClusterLocalQueue for MS.QM.MB401P3)
DISTL(NO) GET(ENABLED)
HARDENBO INITQ( )
IPPROCS(0) MAXDEPTH(100000)
MAXMSGL(4194304) MONQ(QMGR)
MSGDLVSQ(PRIORITY) NOTRIGGER
NPMCLASS(NORMAL) OPPROCS(0)
PROCESS( ) PUT(ENABLED)
PROPCTL(COMPAT) QDEPTHHI(80)
QDEPTHLO(20) QDPHIEV(DISABLED)
QDPLOEV(DISABLED) QDPMAXEV(ENABLED)
QSVCIEV(NONE) QSVCINT(999999999)
RETINTVL(999999999) SCOPE(QMGR)
SHARE STATQ(QMGR)
TRIGDATA( ) TRIGDPTH(1)
TRIGMPRI(0) TRIGTYPE(FIRST)
USAGE(NORMAL) |
|
|
Back to top |
|
 |
suneel |
Posted: Thu May 10, 2012 1:33 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
MQ stub program is
Code: |
//consuming message on MQ
if(destinationType.equals(MQ_INQ_NAME)){
int openOptionsRead = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_INQUIRE;
mqQueue = mqMgr.accessQueue(qName,openOptionsRead,null,null,null);
}
//sending message on MQ
else{
mqQueue = mqMgr.accessQueue(qName, MQC.MQOO_OUTPUT | MQC.MQOO_SET_IDENTITY_CONTEXT, null, null, null);
}
|
|
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu May 10, 2012 2:09 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
and both - the aalias and the qlocal - are on the same queuemanager that the program is connected to?!? either local or via SVRCONN? _________________ Regards, Butcher |
|
Back to top |
|
 |
suneel |
Posted: Thu May 10, 2012 2:10 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
Yes, Both are on same queue manager. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu May 10, 2012 2:34 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
ok just for my understanding
you connect via SVRCONN, use qalias for MQGET and receive the 2082
you connect via SVRCONN, use qlocal for MQGET and it works? _________________ Regards, Butcher |
|
Back to top |
|
 |
suneel |
Posted: Thu May 10, 2012 2:35 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
Yes your understanding is correct |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu May 10, 2012 2:47 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
|
Back to top |
|
 |
suneel |
Posted: Thu May 10, 2012 2:53 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
but i think the thread you have given is for putting message, in my case it is getting message  |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu May 10, 2012 2:58 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
yes, but both do an inquire first imho.
however, for mqget there should not be a cluster naming resolution, as this is something "local-only". (therefore what you wrote in the beginning about binding and clustering should not apply to the mqget as there is no cluster workloadbalancing for mqget). but i think there is cluster naming resolution for the inquire.
what happens, if you sign on locally to the queuemanager machine and use amqsget (or amqsbcg) on the alias queue name? i bet this works.....
but maybe i am totally wrong with this.
i hope you use a most recent, up-to-date mq version? _________________ Regards, Butcher |
|
Back to top |
|
 |
suneel |
Posted: Thu May 10, 2012 3:37 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
yes, when i login to server and use amqsbcg it is working.. i am using MQ7 |
|
Back to top |
|
 |
|