Search code examples
ibm-midrangejt400

JT400 send a message to a queue (I.e. SNDMSG)


Is this the only option when using jt400 to send a message to a queue?

sys = AS400("~")
cmd = CommandCall(sys)
cmd.run("SNDMSG 'My Message'")

The MessageQueue api does not appear to have any sort of send or write method.

CommandCall

MessageQueue


Solution

  • Take look at the sendXXX() methods of MessageQueue in the documentation you provided a link to...

    sendXxxx() methods