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 » perl, client mode: does not work

Post new topic  Reply to topic
 perl, client mode: does not work « View previous topic :: View next topic » 
Author Message
sudaltsov
PostPosted: Thu Nov 07, 2013 9:47 am    Post subject: perl, client mode: does not work Reply with quote

Voyager

Joined: 02 May 2012
Posts: 82

Trying to connect to the QM using standard Perl code, in client mode:

Code:
my $connOpts = {
ChannelName    => 'XXX.SVRCONN',
TransportType  => 'TCP',
ConnectionName => "hostname(1414)",
MaxMsgLength   => 16 * 1024 * 1024,
    };

my $qmgr = MQSeries::QueueManager->new(
QueueManager => $QUEUE_MANAGER,
ClientConn   => $connOpts,
 )  || die "Unable to connect to queue manager $QUEUE_MANAGER\n";

It only works if QM is local (ignoring the ClientConn parameter). It also ignores MQSERVER env var (if I drop ClientConn).

MQCONN failed (Reason = 2058) (Queue manager name not valid or not known.) at ./test_mqserver line 31
Unable to connect to queue manager ....

Perl MQSeries module 1.34.

Anything I am missing?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Nov 07, 2013 10:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://search.cpan.org/~mqseries/MQSeries-1.34/MQSeries.pm#Server_vs._Client_API
Back to top
View user's profile Send private message
sudaltsov
PostPosted: Thu Nov 07, 2013 1:31 pm    Post subject: Reply with quote

Voyager

Joined: 02 May 2012
Posts: 82

mqjeff wrote:
http://search.cpan.org/~mqseries/MQSeries-1.34/MQSeries.pm#Server_vs._Client_API
Thank you very much! Will check that tomorrow.
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 » perl, client mode: does not work
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.