Discussion:
2001 Error on Alias Queue
d***@public.gmane.org
2009-12-08 18:34:43 UTC
Permalink
I have an alias queue defined on QM A which is shared in Cluster 1 -- while the base queue for the alias queue is a local queue on QM B which is also shared in Cluster 1. If I use MQExplorer to write a test message to the alias queue on QM A, it puts the message onto the underlying local queue on QM B.


But if I use one of the JMS or XMS samples to use a CF to connect to QM A and write to the alias queue via a Destination defined to the alias queue on QM A, I get a 2001 error... I feel I am missing something simple here, I just cannot figure out what it could be...


Derek.

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
Neil Casey
2009-12-08 20:04:00 UTC
Permalink
Hi Derek,

there are a few possible issues.

1. Your alias queue probably should not be a member of the cluster.
2. Both the alias and base queue should be defined with defbind(notfixed)
3. If you use jndi from your JMS application to populate the queue name, you need to leave the queue manager name blank, or else put in a dummy name which is resolved by a QRemote definition, and the QR has to have xmitq(' ') rname(' ') and rqmname(' ').

I think what is happening is because cluster resolution only works when the queue manager name is blank (or maps to blanks via a QR).

Regards,

Neil Casey
I have an alias queue defined on QM A which is shared in Cluster 1 -- while the base queue for the alias queue is a local queue on QM B which is also shared in Cluster 1. If I use MQExplorer to write a test message to the alias queue on QM A, it puts the message onto the underlying local queue on QM B.
But if I use one of the JMS or XMS samples to use a CF to connect to QM A and write to the alias queue via a Destination defined to the alias queue on QM A, I get a 2001 error... I feel I am missing something simple here, I just cannot figure out what it could be...
Derek.
List Archive - Manage Your List Settings - Unsubscribe
Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
DwH
2009-12-09 03:14:38 UTC
Permalink
Ok, Neil, thanks - some food for thought...

the thing that surprises me more is that MQExplorer puts the messages to
the alias just fine, so the answer is probably to to fix the JNDI as you
point out...

In "real life" I don't think I really need the alias anyway, I was using
it to try out various authentication schemes - for the "basic" write, I
have the setup where the CF connects to QM A (which is a partial
repository in Cluster 1) but the the open / put goes to a local queue
defined to QM B and shared in Cluster 1 -- and this is working as expected.
Post by Neil Casey
Hi Derek,
there are a few possible issues.
1. Your alias queue probably should not be a member of the cluster.
2. Both the alias and base queue should be defined with defbind(notfixed)
3. If you use jndi from your JMS application to populate the queue
name, you need to leave the queue manager name blank, or else put in a
dummy name which is resolved by a QRemote definition, and the QR has
to have xmitq(' ') rname(' ') and rqmname(' ').
I think what is happening is because cluster resolution only works
when the queue manager name is blank (or maps to blanks via a QR).
Regards,
Neil Casey
Post by d***@public.gmane.org
I have an alias queue defined on QM A which is shared in Cluster 1 --
while the base queue for the alias queue is a local queue on QM B
which is also shared in Cluster 1. If I use MQExplorer to write a
test message to the alias queue on QM A, it puts the message onto the
underlying local queue on QM B.
But if I use one of the JMS or XMS samples to use a CF to connect to
QM A and write to the alias queue via a Destination defined to the
alias queue on QM A, I get a 2001 error... I feel I am missing
something simple here, I just cannot figure out what it could be...
Derek.
------------------------------------------------------------------------
List Archive
<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage
Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe
Instructions for managing your mailing list subscription are provided
in the Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>
------------------------------------------------------------------------
List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html>
- Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
Instructions for managing your mailing list subscription are provided
in the Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>
To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html

Continue reading on narkive:
Loading...