Examples of EmbeddedException


Examples of org.ow2.easybeans.server.EmbeddedException

                    // Perform a garbage collector to avoid file lock
                    System.gc();
                } catch (Exception e) {
                    // Deployment of this deployable has failed
                    this.failed.add(f);
                    throw new EmbeddedException("Cannot redeploy the deployable '" + deployable + "'.", e);
                }
            }

        }
View Full Code Here

Examples of org.ow2.easybeans.server.EmbeddedException

            } catch (FileNotFoundException e) {
                // try alternate file
                try {
                    properties.load(new FileInputStream(ALTERNATE_PATH_PROPERTIES_FILE + PROPERTIES_FILE));
                } catch (IOException ioe) {
                    throw new EmbeddedException("Cannot open the properties file.", ioe);
                }
            } catch (IOException ioe) {
                throw new EmbeddedException("Cannot open the properties file.", ioe);
            }
    }
View Full Code Here

Examples of org.ow2.easybeans.server.EmbeddedException

        // Bind a PostgreSQL datasource
        if (BIND_POSTGRESQL) {
            try {
                new InitialContext().rebind("postgresql", new DBManager(createDefaultPostgreSQL()));
            } catch (NamingException e) {
                throw new EmbeddedException("Cannot start the PostgresSQL database.", e);
            } catch (ClassNotFoundException e) {
                throw new EmbeddedException("Cannot start the Postgres database.", e);
            }
        }
        // Bind a MySQL datasource
        if (BIND_MYSQL) {
            try {
                new InitialContext().rebind("mysql", new DBManager(createDefaultMySQL()));
            } catch (NamingException e) {
                throw new EmbeddedException("Cannot start the MySQL database.", e);
            } catch (ClassNotFoundException e) {
                throw new EmbeddedException("Cannot start the MySQL database.", e);
            }
        }

        // Bind a Oracle datasource
        if (BIND_ORACLE) {
            try {
                new InitialContext().rebind("oracle", new DBManager(createDefaultOracle()));
            } catch (NamingException e) {
                throw new EmbeddedException("Cannot start the Oracle database.", e);
            } catch (ClassNotFoundException e) {
                throw new EmbeddedException("Cannot start the Oracle database.", e);
            }
        }

    }
View Full Code Here

Examples of org.ow2.easybeans.server.EmbeddedException

     */
    private void unbindDataBase(final String dbName) throws EmbeddedException {
        try {
            new InitialContext().unbind(dbName);
        } catch (NamingException e) {
            throw new EmbeddedException("Cannot stop the " + dbName + "dataBase", e);
        }
    }
View Full Code Here

Examples of org.ow2.easybeans.server.EmbeddedException

        EZBDepMonitorComponent depMonitorComponent = this.embedded.getComponent(EZBDepMonitorComponent.class);
        if (depMonitorComponent != null) {
            try {
                depMonitorComponent.stop();
            } catch (EZBComponentException e) {
                throw new EmbeddedException("Can not stop the Depmonitor component", e);
            }
        }

        // Get the event component.
        EZBEventComponent eventComponent = this.embedded.getComponent(EZBEventComponent.class);
        if (eventComponent == null) {
            throw new EmbeddedException("The Event component is not found. It is necesary to run the plugin.");
        } else if (persistenceListener != null) {
            this.persistenceSupport = new PersistenceSupport(eventComponent);
            this.persistenceSupport.addListener(persistenceListener);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.