MQSeries
view release on metacpan or search on metacpan
examples/request-reply/request_permdyn.pl view on Meta::CPAN
new('QueueManager' => $qmgr,
'Queue' => $request_qname,
'Mode' => 'output') ||
die "Cannot open request queue $qmgr_name/$request_qname";
#
# The dynamic queue name contains the userid. For real applications,
# you'd use an application instance specific name, whether that's the
# host, the product, the tarde engine, or whatever.
#
my $userid = ($^O =~ /^MSWin/ ? $ENV{USERNAME} : getpwuid($<));
my $reply_qname = $dynamic_qname;
$reply_qname =~ s/\.\*$/.\U$userid/;
print "Have dynamic reply queue name [$reply_qname]\n";
my $reply_queue = MQSeries::Queue::->
new('QueueManager' => $qmgr,
'Queue' => $model_qname,
'DynamicQName' => $reply_qname,
'Mode' => 'input_exclusive',
'Carp' => sub {}, # We print error when required
t.in/50oo-command.t view on Meta::CPAN
}
SKIP: {
if ( "__APITYPE__" eq "MQServer" && ! -d $systemdir ) {
skip("Cannot test server API on client host", 29);
}
#
# We'll only test MQSeries::Command if we run as user 'mqm'
#
my $username = ($^O =~ /^MSWin/ ? $ENV{USERNAME} : getpwuid($<));
unless (lc $username eq 'mqm') {
skip("Not testing MQSeries::Command unless running as user 'mqm', not '$username'", 29);
}
my $QMgrName = $myconfig{"QUEUEMGR"};
#
# Create QueueManager object and connect
#
my $qmgr_obj = MQSeries::QueueManager->
t.in/51oo-command-changes.t view on Meta::CPAN
}
SKIP: {
if ( "__APITYPE__" eq "MQServer" && ! -d $systemdir ) {
skip("Cannot test server API on client host", 99);
}
#
# We'll only test MQSeries::Command if we run as user 'mqm'
#
my $username = ($^O =~ /^MSWin/ ? $ENV{USERNAME} : getpwuid($<));
unless (lc $username eq 'mqm') {
skip("Not testing MQSeries::Command unless running as user 'mqm', not '$username'", 99);
}
my $QMgrName = $myconfig{"QUEUEMGR"};
#
# Create QueueManager object and connect
#
my $qmgr_obj = MQSeries::QueueManager->
t.in/52oo-command-filter.t view on Meta::CPAN
skip("Cannot test server API on client host", 83);
}
if ($MQSeries::MQ_VERSION < 6) {
skip("Module not compiled for MQSeries version 6", 83);
}
#
# We'll only test MQSeries::Command if we run as user 'mqm'
#
my $username = ($^O =~ /^MSWin/ ? $ENV{USERNAME} : getpwuid($<));
unless (lc $username eq 'mqm') {
skip("Not testing MQSeries::Command unless running as user 'mqm', not '$username'", 83);
}
my $QMgrName = $myconfig{"QUEUEMGR"};
#
# Create QueueManager object and connect
#
my $qmgr_obj = MQSeries::QueueManager->
( run in 0.294 second using v1.01-cache-2.11-cpan-8d75d55dd25 )