in reply to Not able to put more than 10k uncommited messages in queue

Howdy Shreyak, welcome to the Monastery! Could you be a bit more specific, perhaps? In particular: could you share some code that demonstrates what you're trying to do, and tell us what error message you are receiving?

Here's some helpful nodes on how to ask questions to get you started:

You'll make it so much easier for us to help you.

  • Comment on Re: Not able to put more than 10k uncommited messages in queue

Replies are listed 'Best First'.
Re^2: Not able to put more than 10k uncommited messages in queue
by Shreyak (Novice) on Jul 12, 2014 at 04:26 UTC
    eval{ open(MSGFILE,'/dir') or die("Cannot open dir"); while (<MSGFILE>) { next if ($_ =~ m/header/i); $msg = $_; $counter += 1; my $getmessage = MQSeries::Message->new; $getmessage->Data($msg); $dstqobj->Put(Message => $getmessage , Sync => 1) or $logger- +>logdie("Unable to put message onto Queue at line $counter\nCompCode + = " . $dstqobj->CompCode() . "\nReason = " . $dstqobj->Reason() . "\n"); } close MSGFILE; }; if($@){ $qmgr->Backout() or $logger->logdie("error in backout: $@"); } else{ $qmgr->Commit() or $logger->logdie("error in commiting messages +$!"); }

    I've put auto commit option off