Package hermes

Examples of hermes.HermesException


         else
         {
            Hermes.ui.getDefaultMessageSink().add(ex.getMessage());
         }

         throw new HermesException(ex);
      }
      finally
      {
         try
         {
View Full Code Here


    for (int i = 0; i < rows.length; i++) {
      Message m = messageHeaderTableModel.getMessageAt(filterModel.getActualRowAt(rows[i]));

      if (m.getJMSMessageID() == null) {
        throw new HermesException("One or more of the messages has a null JMSMessageID");
      }

      try {

        ids.add(m.getJMSMessageID());
View Full Code Here

                    iter.nextElement();
                    depth++;

                    if ( depth > maxSize)
                    {
                        throw new HermesException("The default admin provider only implements queue depth functionality up to " + maxSize + " messages");
                    }
                }
            }
            finally
            {
                browser.close();
            }

            return depth;
        }
        else
        {
            throw new HermesException("Cannot get the depth of a topic without a plugin.") ;
        }
    }
View Full Code Here

        {
            return new IteratorEnumeration(queue.getMessages(factory, selector).iterator());
        }
        catch (IOException e)
        {
            throw new HermesException(e);
        }
    }
View Full Code Here

      this.spyCF = (SpyConnectionFactory) spyCF;
      this.factory = factory;

      if (factory.getRmiAdaptorBinding() == null)
      {
         throw new HermesException("You must set rmiAdaptorBinding in the Admin Factory ");
      }
   }
View Full Code Here

         }
         else
         {
            if (dConfig.isDurable())
            {
               throw new HermesException("JBoss does not support depth of a durable subscription");
            }
            else
            {
               return 0 ;
            }
         }
      }
      catch (HermesException ex)
      {
         throw ex ;
      }
      catch (Exception e)
      {
         log.error(e.getMessage(), e);

         rmiAdaptor = null;
         throw new HermesException(e);
      }

   }
View Full Code Here

            log.error("Unable to get State property", ex);
         }
      }
      catch (Exception e)
      {
         throw new HermesException(e);
      }

      return stats;
   }
View Full Code Here

            getRMIAdapter().invoke(objectName, "removeAllMessages", new String[0], new String[0]);
         }
         else
         {
            throw new HermesException("JBoss does not support truncating a durable subscription");
         }
      }
      catch (HermesException ex)
      {
         throw ex;
      }
      catch (Exception e)
      {
         log.error(e.getMessage(), e);

         rmiAdaptor = null;
         throw new HermesException(e);

      }

      return rval;
   }
View Full Code Here

         };
      }
      catch (Exception e)
      {
         log.error(e.getMessage(), e);
         throw new HermesException(e);
      }
   }
View Full Code Here

    if (domain == Domain.QUEUE) {
      return new MessageStoreQueue(name);
    } else if (domain == Domain.TOPIC) {
      return new MessageStoreTopic(name);
    } else {
      throw new HermesException("Invalid domain.");
    }
  }
View Full Code Here

TOP

Related Classes of hermes.HermesException

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.