Package org.apache.sandesha2.storage

Examples of org.apache.sandesha2.storage.SandeshaStorageException


      }
    } catch (Exception e) {
      String message = SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.failedToLoadMessage, e.toString());
      if(LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug(message);
      throw new SandeshaStorageException(message, e);
    }

    if(LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug("Exit: InMemoryStorageManager::retrieveMessageContext, " + messageContext);
    return messageContext;
  }
View Full Code Here


      }
    } catch(Exception e) {
      String message = SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.failedToStoreMessage, e.toString());
      if(LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug(message);
      throw new SandeshaStorageException(message, e);
    }
   
    if(LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug("Exit: InMemoryStorageManager::storeMessageContext, key: " + key);
  }
View Full Code Here

  public void updateMessageContext(String key,MessageContext msgContext) throws SandeshaStorageException {
    if(LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug("Enter: InMemoryStorageManager::updateMessageContext, key: " + key);

    Object oldEntry = storageMap.remove(key);
    if (oldEntry==null)
      throw new SandeshaStorageException (SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.entryNotPresentForUpdating));
   
    storeMessageContext(key,msgContext);

    if(LoggingControl.isAnyTracingEnabled() && log.isDebugEnabled()) log.debug("Exit: InMemoryStorageManager::updateMessageContext, key: " + key);
View Full Code Here

    try {
      Statement stmt = getDbConnection().createStatement();
      stmt.executeUpdate("delete from wsrm_sender where message_id='" + messageID + "'");
      stmt.close();
    } catch (Exception ex) {
      throw new SandeshaStorageException(ex);
    }
    return true;
  }
View Full Code Here

        lst.add(getBean(rs));
      }
      rs.close();
      stmt.close();
    } catch (Exception ex) {
      throw new SandeshaStorageException(ex);
    }
    return lst;
  }
View Full Code Here

        lst.add(getBean(rs));
      }
      rs.close();
      stmt.close();
    } catch (Exception ex) {
      throw new SandeshaStorageException(ex);
    }
    return lst;
  }
View Full Code Here

      }
      rs.close();
      stmt.close();
    } catch (Exception ex) {
      log.error("getNextMsgToSend Exception" + ex);
      throw new SandeshaStorageException(ex);
    }
    if (log.isDebugEnabled()) log.debug("Exit getNextMessageToSend " + result);
    return result;
  }
View Full Code Here

      pstmt.setInt(15, bean.isTransportAvailable() ? 1 : 0);
      pstmt.setInt(16, bean.getFlags());
      pstmt.execute();
      pstmt.close();
    } catch (Exception ex) {
      throw new SandeshaStorageException(ex);
    }
    return true;
  }
View Full Code Here

      if (! rs.next()) return bean;
      bean = getBean(rs);
      rs.close();
      stmt.close();
    } catch (Exception ex) {
      throw new SandeshaStorageException(ex);
    }
    return bean;
  }
View Full Code Here

      pstmt.setInt(15, bean.getFlags());
      pstmt.execute();
      pstmt.close();
    } catch (Exception ex) {
      log.error("Update Exception " + ex);
      throw new SandeshaStorageException(ex);
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.storage.SandeshaStorageException

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.