Package hermes

Examples of hermes.HermesException


    final Connection connection = getWriterConnection();

    try {
      adapter.remove(connection, storeId);
    } catch (SQLException ex) {
      throw new HermesException(ex);
    }
  }
View Full Code Here


        return from;
      } else {
        return defaultFactory.getDestination(JMSUtils.getDestinationName(from), Domain.getDomain(from));
      }
    } catch (NamingException ex) {
      throw new HermesException(ex);
    }
  }
View Full Code Here

        if (depths.containsKey(from)) {
          depths.put(from, depths.get(from) + 1);
        }
      }
    } catch (SQLException ex) {
      throw new HermesException(ex);
    }
  }
View Full Code Here

        depths.put(d, depth);
      }

      return depth;
    } catch (SQLException e) {
      throw new HermesException(e);
    } finally {
      DbUtils.closeQuietly(connection);
    }
  }
View Full Code Here

        for (final MessageStoreListener l : listeners) {
          l.onDestinationDeleted(destination);
        }
      }
    } catch (SQLException ex) {
      throw new HermesException(ex);
    }
  }
View Full Code Here

      depths.remove(d);

      destinations.remove(createStoreDestination(d));
    } catch (SQLException ex) {
      throw new HermesException(ex);
    }
  }
View Full Code Here

      if (writerTL.get() != null) {
        writerTL.get().rollback();
        writerTL.get().close();
      }
    } catch (SQLException e) {
      throw new HermesException(e);
    } finally {
      writerTL.set(null);
    }
  }
View Full Code Here

      if (writerTL.get() != null) {
        writerTL.get().commit();
        writerTL.get().close();
      }
    } catch (SQLException e) {
      throw new HermesException(e);
    } finally {
      writerTL.set(null);
    }
  }
View Full Code Here

  public void close() throws JMSException {
    try {
      getWriterConnection().close();
    } catch (SQLException e) {
      throw new HermesException(e);
    } finally {
      writerTL.set(null);
    }
  }
View Full Code Here

      for (final MessageStoreListener l : listeners) {
        l.onMessageChanged(message);
      }
    } catch (SQLException ex) {
      throw new HermesException(ex) ;
    }

  }
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.