|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved]perl MQSeries::Command, "Last response message |
« View previous topic :: View next topic » |
Author |
Message
|
charliema |
Posted: Thu Aug 05, 2004 11:04 am Post subject: [Solved]perl MQSeries::Command, "Last response message |
|
|
Newbie
Joined: 04 Aug 2004 Posts: 3 Location: CA
|
I'm trying out the MQSeries::Command module by testing the sample script at the top of the doc which gets queue names from a queue manager. In brief the code is as follows:
use MQSeries;
use MQSeries::Command;
my $myMQCmd = MQSeries::Command->new(
QueueManager => 'BMON.JRNL.ORDR.TST.MGR.88' )
or die("Unable to instantiate command object\n");
my @qnames = $myMQCmd->InquireQueueNames()
or die "Unable to list queue names: ", $myMQCmd->Reason();
This script exits with the message "Last response message never seen"
and the Reason is 2195, which has the unhelpful test 'Unexpected error occurred.'
What am I doing wrong??
thanks,
charlie |
|
Back to top |
|
 |
clindsey |
Posted: Thu Aug 05, 2004 11:46 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Definitely a misleading message....
Just a guess, but I suspect your command server is not running.
Enter 'dspmqcsv <qmgrname>' to see.
If not running, start it with 'strmqcsv <qmgrname>'.
Then try your code again.
Charlie |
|
Back to top |
|
 |
charliema |
Posted: Thu Aug 05, 2004 1:36 pm Post subject: |
|
|
Newbie
Joined: 04 Aug 2004 Posts: 3 Location: CA
|
You're right. It was stopped, and strmqcsv fixed it. I've got a lot to learn about mq.
Thanks, Charlie, for saving the day ... again
-charlie |
|
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
|
|
|
|