Package com.tibco.tibjms.admin

Examples of com.tibco.tibjms.admin.DurableInfo


   {
      if (destination.isDurable())
      {
         try
         {
            DurableInfo info = getAdmin().getDurable(destination.getClientID(), getHermes().getConnection().getClientID());

            if (info != null)
            {
               return (int) info.getPendingMessageCount();
            }
            else
            {
               throw new HermesException("No durable information availble for clientID=" + getHermes().getConnection().getClientID() + ", durableName="
                     + destination.getClientID());
            }
         }
         catch (TibjmsAdminException ex)
         {
            throw new HermesException(ex);
         }
      }
      else
      {
         DestinationInfo info = getDestinationInfo(destination);

         if (info != null)
         {
            return (int) info.getPendingMessageCount();
         }
         else
         {
            return 0;
         }
View Full Code Here


         final Collection<DestinationConfig> rval = new ArrayList<DestinationConfig>();
         final DurableInfo[] dInfos = getAdmin().getDurables(topicName);

         for (int j = 0; j < dInfos.length; j++)
         {
            DurableInfo dInfo = dInfos[j];

            final DestinationConfig dConfig = HermesBrowser.getConfigDAO().createDestinationConfig();

            dConfig.setDurable(true);
            dConfig.setName(jndiName == null ? dInfo.getTopicName() : jndiName);
            dConfig.setClientID(dInfo.getDurableName());
            dConfig.setSelector(dInfo.getSelector());
            dConfig.setDomain(Domain.TOPIC.getId());

            rval.add(dConfig);
         }
View Full Code Here

TOP

Related Classes of com.tibco.tibjms.admin.DurableInfo

Copyright © 2018 www.massapicom. 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.