Example (Java) - assured put

A skeleton version of the code required for an assured put is shown below:
  long confirmId = MQe.uniqueValue();
  
  try
  {
    qmgr.putMessage( "RemoteQMgr", "RemoteQueue",
                    msg, null, confirmId );
  }
  catch( Exception e )
  {
    /* handle any exceptions*/
  }
  
  try
  {
      qmgr.confirmPutMessage( "RemoteQMgr", "RemoteQueue",
                             msg.getMsgUIDFields() );
  }
  catch ( Exception e )
  {
    /* handle any exceptions    */
  }  

Parent topic: Put message - assured put