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    */
  }  

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.