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 » General IBM MQ Support » Getting msgs from alias queue fails. Difference V6 and V7?

Post new topic  Reply to topic
 Getting msgs from alias queue fails. Difference V6 and V7? « View previous topic :: View next topic » 
Author Message
toshi78
PostPosted: Fri May 04, 2012 12:27 am    Post subject: Getting msgs from alias queue fails. Difference V6 and V7? Reply with quote

Newbie

Joined: 04 May 2012
Posts: 9
Location: Germany

Hi,
we are planning to migrate our environment from MQ V6 (Solaris) to V7 (Linux).

Usually our application puts messages to an alias queue (TARGQ is a remote queue) and gets
messages from an alias queue (TARGQ is a local queue). Now I've tried this simple operation
with a really simple testszenario on V7 but it fails.

My config:
Qmgr: TESTQMGR
LocalQueue: TEST.QL
AliasQueue: TEST.QA with TARGQ(TEST.QL)

Testszenario on MQ V6 (Solaris):

mqm@solaris:~$ /opt/mqm/samp/bin/amqsput TEST.QA TESTQMGR
Sample AMQSPUT0 start
target queue is TEST.QA
1

Sample AMQSPUT0 end

mqm@solaris:~$ /opt/mqm/samp/bin/amqsget TEST.QA TESTQMGR
Sample AMQSGET0 start
message <1>
no more messages
Sample AMQSGET0 end


Testszenario on MQ V7 (Linux):

mqm@linux:~$ /opt/mqm/samp/bin/amqsput TEST.QA TESTQMGR
Sample AMQSPUT0 start
target queue is TEST.QA
1

Sample AMQSPUT0 end

mqm@linux:~$ /opt/mqm/samp/bin/amqsget TEST.QA TESTQMGR
Sample AMQSGET0 start
MQOPEN ended with reason code 2045
unable to open queue for input
Sample AMQSGET0 end


Why I'm getting 2045? I've also tried to get the message with qload. Same problem.

Can anybody explain?

Thanks in advance,
Toshi
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 04, 2012 4:07 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9415
Location: US: west coast, almost. Otherwise, enroute.

And you looked up 2045 a d discovered that it means ... what
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri May 04, 2012 6:36 am    Post subject: Re: Getting msgs from alias queue fails. Difference V6 and V Reply with quote

Grand High Poobah

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

toshi78 wrote:
Can anybody explain?


Your v6 queue manager's queues are set up to allow this. Your v7 queue manager's queue are not.

I've just repeated your test on a v7 queue manager:

Code:

C:\Program Files\IBM\MQSI\7.0>runmqsc XEYE53K
5724-H72 (C) Copyright IBM Corp. 1994, 2009.  ALL RIGHTS RESERVED.
Starting MQSC for queue manager XEYE53K.


DEFINE QL(TEST.QL)
     1 : DEFINE QL(TEST.QL)
AMQ8006: WebSphere MQ queue created.
DEFINE QA(TEST.QA) TARGQ(TEST.QL)
     2 : DEFINE QA(TEST.QA) TARGQ(TEST.QL)
AMQ8006: WebSphere MQ queue created.
end
     3 : end
2 MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.

C:\Program Files\IBM\MQSI\7.0>amqsput TEST.QA XEYE53K
Sample AMQSPUT0 start
target queue is TEST.QA
1

Sample AMQSPUT0 end

C:\Program Files\IBM\MQSI\7.0>amqsget TEST.QA XEYE53K
Sample AMQSGET0 start
message <1>
no more messages
Sample AMQSGET0 end

C:\Program Files\IBM\MQSI\7.0>

_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rcp_mq
PostPosted: Sun May 06, 2012 6:14 am    Post subject: Reply with quote

Centurion

Joined: 13 Dec 2011
Posts: 133

2045 means option not valid (mqrc <reasoncode>)...see what happens if you don't provide the qmgr name.
Back to top
View user's profile Send private message
toshi78
PostPosted: Mon May 07, 2012 1:19 am    Post subject: Reply with quote

Newbie

Joined: 04 May 2012
Posts: 9
Location: Germany

I feel a bit sheepish about it but I dit a mistake.

I was testing how to set the rights for the queues. I just wanted to see if I have to set the rights just for the alias q or the local q as well. The day before I did the same test with a remote q as TARGQ. I forgot to set TARGQ back to my local q.

Sorry, for waisting your time.
Back to top
View user's profile Send private message
exerk
PostPosted: Mon May 07, 2012 1:30 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

toshi78 wrote:
I feel a bit sheepish about it but I dit a mistake...Sorry, for waisting your time.

It's a human failing, in all of us, that we sometimes see what we think is there rather than what is actually there - chalk this one up to experience!

EDIT: And thank you for your honesty in admitting that mistake rather than silently slinking off the board
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
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 » General IBM MQ Support » Getting msgs from alias queue fails. Difference V6 and V7?
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.