Package hermes

Examples of hermes.HermesException


            return rval;
        }
        catch (AuthorizationAdminException e)
        {
            throw new HermesException(e);
        }
        catch (AdminException e)
        {
            throw new HermesException(e);
        }
    }
View Full Code Here


      }
      rval = dateFormat.parse(queueStats.getProperty("LAST_ENQUEUE_TIME")).getTime();

    }catch(Exception e)
    {
      throw new HermesException("Could not fetch last published time.",e);
    }

    return rval;
  }
View Full Code Here

                return new WMEAdmin(hermes, adminClient);
            }
            catch (BrokerException e)
            {
                throw new HermesException(e);
            }
        }
        else
        {
            throw new HermesException("Provider is not WebMethods JMS");
        }
    }
View Full Code Here

          JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory ;
          return new ArjunaMSAdmin(hermes, this, jndiCF.createContext()) ;
       }
       else
       {
          throw new HermesException("Provider is not ArjunaMS") ;
       }
    }
View Full Code Here

        file.createNewFile() ;
        FileWriter fs = new FileWriter(file) ;
        fs.append(EMPTY_FILE) ;
        fs.close() ;
      } catch (IOException e) {
        throw new HermesException(e) ;
      }
    }
  }
View Full Code Here

          if (selectorImpl.eval(ValueProvider.valueOf(message), null) == Result.RESULT_FALSE) {
            iter.remove();
          }
        }
      } catch (InvalidSelectorException e) {
        throw new HermesException(e);
      }
    }

    return messages;
  }
View Full Code Here

        }
      }

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

      discoverDestinationConfigsFromContext(null, ctx, rval, new HashSet<String>());

      return rval;
    } else {
      throw new HermesException("The default provider extension cannot discover queues or topics on " + hermes.getConnectionFactory().getClass().getName());
    }
  }
View Full Code Here

  public String getRealDestinationName(DestinationConfig dConfig) throws JMSException {
    try {
      return JMSUtils.getDestinationName(getHermes().getDestination(dConfig.getName(), Domain.getDomain(dConfig.getDomain())));
    } catch (NamingException ex) {
      throw new HermesException(ex);
    }
  }
View Full Code Here

            return new OpenJMSAdmin(hermes, cf);
        }
        else
        {
            throw new HermesException("Incompatible ConnectionFactory");
        }
    }
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.