Package org.apache.servicemix.nmr.audit

Examples of org.apache.servicemix.nmr.audit.AuditorException


        throw new AuditorException("getExchangeIdsByRange currently unsupported by FileAuditor");
    }

    @Override
    public Exchange[] getExchangesByIds(String[] ids) throws AuditorException {
        throw new AuditorException("getExchangeByIds currently unsupported by FileAuditor");
    }
View Full Code Here


            if (createDataBase) {
                jdbcAdapter.doCreateTables(connection);
            }
            connection.commit();
        } catch (SQLException e) {
            throw (AuditorException) new AuditorException("Exception while creating database").initCause(e);
        } catch (IOException e) {
           throw (AuditorException) new AuditorException("Exception while creating database").initCause(e);
        } finally {
            close(connection, restoreAutoCommit);
        }
        this.tccl = Thread.currentThread().getContextClassLoader();
        return jdbcAdapter;
View Full Code Here

           adapter=createAdapter();
        try {
            connection = dataSource.getConnection();
            return adapter.doGetCount(connection);
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchange count", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here

        Connection connection = null;
        try {
            connection = dataSource.getConnection();
            return adapter.doGetIds(connection, fromIndex, toIndex);
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchange ids", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here

            for (int row = 0; row < ids.length; row++) {
                exchanges[row] = getExchange(adapter.doLoadData(connection, ids[row]));
            }
            return exchanges;
        } catch (Exception e) {
            throw new AuditorException("Could not retrieve exchanges", e);
        } finally {
            close(connection, false);
        }
    }
View Full Code Here

                adapter.doRemoveData(connection, ids[row]);
            }
            connection.commit();
            return ids.length;
        } catch (Exception e) {
            throw new AuditorException("Could not delete exchanges", e);
        } finally {
            close(connection, restoreAutoCommit);
        }
    }
View Full Code Here

        try {
            Thread.currentThread().setContextClassLoader(tccl);
            ObjectInputStream is = new ObjectInputStream(new ByteArrayInputStream(data));
            return (Exchange) is.readObject();
        } catch (Exception e) {
            throw new AuditorException("Unable to reconstruct exchange", e);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCl);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.audit.AuditorException

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.