|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
perl, client mode: does not work |
« View previous topic :: View next topic » |
Author |
Message
|
sudaltsov |
Posted: Thu Nov 07, 2013 9:47 am Post subject: perl, client mode: does not work |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Nov 07, 2013 10:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
sudaltsov |
Posted: Thu Nov 07, 2013 1:31 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|