Examples of PCFMessageAgent


Examples of com.ibm.mq.pcf.PCFMessageAgent

   }
  
   public synchronized Collection discoverDestinationConfigs() throws JMSException
   {
      final Collection rval = new ArrayList();
      PCFMessageAgent agent = null;

      try
      {
         agent = new PCFMessageAgent(getQueueManager());
         getQueueByType(agent, MQC.MQQT_LOCAL, rval) ;
         getQueueByType(agent, MQC.MQQT_ALIAS, rval) ;        
      }
      catch (MQException ex)
      {
         if (ex.reasonCode != 2033)
         {
            throw new HermesException(ex) ;
         }
         else
         {
            log.debug("PCF calls gave a 2033 reason code, ignoring") ;
         }
      }
      catch (Exception ex)
      {
         throw new HermesException(ex);
      }
      finally
      {
         if (agent != null)
         {
            try
            {
               agent.disconnect();
            }
            catch (MQException e)
            {
               log.error(e.getMessage(), e);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.