Package com.sun.ejb.spi.sfsb.store

Examples of com.sun.ejb.spi.sfsb.store.SFSBStoreManagerException


            store = getStore();           
            ( (HAEjbStore) store).save(beanState, this, beanState.isNew());
        }
        catch (IOException e) {
            //e.printStackTrace();
            throw new SFSBStoreManagerException("Error during passivateSave: isNew =" + isNew + ": id =" + beanState.getId().toString(), e);
        }
        finally {
            this.putStore(store);
        }
       
View Full Code Here


           
        }
        catch (Exception e) {
            //e.printStackTrace();
            //throw e;           
            throw new SFSBStoreManagerException("Error loading SFSB state: id =" + id.toString(), e);
        }
        finally {
            this.putStore(store);
            if(_logger.isLoggable(Level.FINER)) {
                _logger.exiting("HASFSBStoreManager", "getStore", sfsbState);
View Full Code Here

            if(this.isMonitoringEnabled()) {
                //restore original txCheckpointDurations
                this.restoreOriginalTxCheckpointDurations(beanStates, originalTxCheckpointDurations);
            }
            //end added for monitoring
            throw new SFSBStoreManagerException("Error during checkpointSave", e);
        }
        finally {
            this.putStore(store);
        }
        //FIXME: temp test code next 2 lines
View Full Code Here

                _logger.exiting("HASFSBStoreManager", "removeAll");
            }
        }
        catch (Exception e) {
            e.printStackTrace();
            throw new SFSBStoreManagerException("Error during HASFSBStoreManager>>removeAll for container: " + containerId, e);
        }
        finally {
            //un-register with health checker
            EEHADBHealthChecker.removeHASFSBStoreManager(this.getContainerID());           
            this.putStore(store);
View Full Code Here

            store = getStore();           
            ( (HAEjbStore) store).save(beanState, this, beanState.isNew());
        }
        catch (IOException e) {
            //e.printStackTrace();
            throw new SFSBStoreManagerException("Error during checkpointSave: isNew =" + isNew + ": id =" + beanState.getId().toString(), e);
        }
        finally {
            this.putStore(store);
        }
       
View Full Code Here

                _logger.exiting("HASFSBStoreManager", "updateLastAccessTime");
            }
        }
        catch (Exception e) {
            e.printStackTrace();
            throw new SFSBStoreManagerException("Error during HASFSBStoreManager>>updateLastAccessTime for key: "
                + sessionKey + " errMsg: " + e.getMessage(), e);
        }
        finally {
            this.putStore(store);
        }
View Full Code Here

                _logger.exiting("HASFSBStoreManager", "removeExpired");
            }
        }
        catch (Exception e) {
            e.printStackTrace();
            throw new SFSBStoreManagerException("Error during HASFSBStoreManager>>removeExpired for container: " + containerId, e);
        }
        finally {
            this.putStore(store);
        }
        if(_logger.isLoggable(Level.FINER)) {
View Full Code Here

                _logger.exiting("HASFSBStoreManager", "removeExpired");
            }
        }
        catch (Exception e) {
            e.printStackTrace();
            throw new SFSBStoreManagerException("Error during HASFSBStoreManager>>removeExpired for container: " + containerId, e);
        }
        finally {
            this.putStore(store);
        }
        if(_logger.isLoggable(Level.FINER)) {
View Full Code Here

    if (file.exists() == false) {
        _logger.log(Level.WARNING, storeName
      + ": Cannot update timsestamp for: " + sessionKey
          + "; File does not exist");
    } else {
        throw new SFSBStoreManagerException(
      storeName + ": Cannot update timsestamp for: " + sessionKey);
    }
      }
  } catch (SFSBStoreManagerException sfsbSMEx) {
      throw sfsbSMEx;
  } catch (Exception ex) {
      _logger.log(Level.WARNING, storeName
    + ": Exception while updating timestamp", ex);     
      throw new SFSBStoreManagerException(
    "Cannot update timsestamp for: " + sessionKey
        + "; Got exception: " + ex);     
  }
    }
View Full Code Here

      _logger.log(Level.WARNING, "ejb.sfsb_storemgr_savestate_failed",
                new Object[] {fileName});
      _logger.log(Level.WARNING, "ejb.sfsb_storemgr_savestate_exception", ex);
            try { removeFile(file); } catch (Exception ex1) {}
            String errMsg = "Could not save session: " + beanState.getId();
            throw new SFSBStoreManagerException(errMsg, ex);
        } finally {
            try {
    if (bos != null) bos.close();
      } catch (Exception ex) {
    _logger.log(Level.FINE, "Error while closing buffered output stream", ex);
View Full Code Here

TOP

Related Classes of com.sun.ejb.spi.sfsb.store.SFSBStoreManagerException

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.