public int GetQueuBackoutLimit( ref string queueName ) { if( false == _existingQueues.ContainsKey( queueName ) ) return -1; int[] selectors = { IBM.WMQ.MQC.MQIA_BACKOUT_THRESHOLD, IBM.WMQ.MQC.MQCA_BACKOUT_REQ_Q_NAME }; int[] intAttrs = new int[ 1 ]; byte[] charAttrs = new byte[ IBM.WMQ.MQC.MQ_Q_NAME_LENGTH ]; IBM.WMQ.MQQueue queue = (IBM.WMQ.MQQueue) _existingQueues[ queueName ]; queue.Inquire( selectors, intAttrs, charAttrs ); return intAttrs[ 0 ]; }
public string GetBackoutQueueNameForQueue( ref string queueName ) { if( false == _existingQueues.ContainsKey( queueName ) ) return string.Empty; int[] selectors = { IBM.WMQ.MQC.MQIA_BACKOUT_THRESHOLD, IBM.WMQ.MQC.MQCA_BACKOUT_REQ_Q_NAME }; int[] intAttrs = new int[ 1 ]; byte[] charAttrs = new byte[ IBM.WMQ.MQC.MQ_Q_NAME_LENGTH ]; IBM.WMQ.MQQueue queue = (IBM.WMQ.MQQueue) _existingQueues[ queueName ]; queue.Inquire( selectors, intAttrs, charAttrs ); string qBackoutName = NovadisTools.PdfFactory.BiteToString( charAttrs ).Trim(); return qBackoutName; }