Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: MQSeries Put Options

by morgon (Priest)
on Jun 05, 2018 at 21:29 UTC ( [id://1215958]=note: print w/replies, xml ) Need Help??


in reply to MQSeries Put Options

Please format your code.

And I think it should be an argument to the Put-call.

Something along (I can't try it out, so this is only guess-work):

$queue->Put( Message => $message, PutMsgOpts => { MQMF_SEGMENTATION_AL +LOWED => 1 } );
so something along these lines... You need to double-check the documentation...

Replies are listed 'Best First'.
Re^2: MQSeries Put Options
by roperl (Beadle) on Jun 11, 2018 at 17:25 UTC
    I found what I was missing

    It's in the Message Descriptor options (MsgDesc)
    You need to specify allowing the QMGR to segment the message with MsgFlags => MQSeries::MQMF_SEGMENTATION_ALLOWED
    my $md = { MsgFlags => MQSeries::MQMF_SEGMENTATION_ALLOWED }; my $putmessage = MQSeries::Message->new( MsgDesc => $md ,Data => $data + );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1215958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-03-28 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found