Package com.sun.enterprise.admin.event

Examples of com.sun.enterprise.admin.event.AdminEventListenerException.initCause()


                connectorResourcesLoader= new ConnectorResourcesLoader();
                connectorResourcesLoader.loadRAConfigs(event.getModuleName());
            } catch (ConfigException e) {
                _logger.log(Level.WARNING, "" + e.getMessage());
                AdminEventListenerException aele = new AdminEventListenerException();
                aele.initCause(e);
                throw aele;
            }
           
            realDeployed(event);
View Full Code Here


            } catch(AdminEventListenerException ex) {
                throw ex;
            } catch(Throwable th) {
                AdminEventListenerException aele = 
                           new AdminEventListenerException();
                aele.initCause(th);
                throw aele;
            }finally {
                ResourcesUtil.resetEventConfigContext();
            }
        }
View Full Code Here

    {
        try {
            return migrateTimers( fromServerId  );
        } catch( Exception ex ) {
            AdminEventListenerException adminEx = new AdminEventListenerException();
            adminEx.initCause( ex );
            throw adminEx;
        }
    }

    public String[] listTimers(EjbTimerEvent event, String[] servers)
View Full Code Here

    {
        try {
            return listTimers( servers );
        } catch( Exception ex ) {
            AdminEventListenerException adminEx = new AdminEventListenerException();
            adminEx.initCause( ex );
            throw adminEx;
        }
    }

} //AdminEJBTimerEventListenerImpl.java
View Full Code Here

            //we don't have the ability to return all errors.  so return the
            //first one, enough to signal the problem.
            String msg = throwables.get(0).getMessage();
            AdminEventListenerException ex =
                new AdminEventListenerException(msg);
            ex.initCause(throwables.get(0));
            throw ex;
        }
    }
    
        
View Full Code Here

            return ((app != null && app.isEnabled()) &&
                        (appRef != null && appRef.isEnabled()));
        } catch (ConfigException e) {
            AdminEventListenerException ex = new AdminEventListenerException();
            ex.initCause(e);
            _logger.log(Level.FINE, "Error in finding " + moduleName, e);

            //If there is anything wrong, do not enable the module
            return false;
        }
View Full Code Here

               getAdapter().reloadRA(service);
            }
        } catch (ConnectorRuntimeException cre) {
            AdminEventListenerException ale =
                new AdminEventListenerException(cre.getMessage());
            ale.initCause(cre);
            throw ale;
        } catch (ConfigException ce) {
            AdminEventListenerException ale =
                new AdminEventListenerException(ce.getMessage());
            ale.initCause(ce);
View Full Code Here

            ale.initCause(cre);
            throw ale;
        } catch (ConfigException ce) {
            AdminEventListenerException ale =
                new AdminEventListenerException(ce.getMessage());
            ale.initCause(ce);
            throw ale;
        }
    }

    private ActiveJmsResourceAdapter getAdapter(){
View Full Code Here

            ApplicationRef appRef = server.getApplicationRefByRef(moduleName);
            return ((app != null && app.isEnabled()) &&
                        (appRef != null && appRef.isEnabled()));
        } catch (ConfigException e) {
            AdminEventListenerException ex = new AdminEventListenerException();
            ex.initCause(e);
            _logger.log(Level.FINE, "Error in finding " + moduleName, e);

            //If there is anything wrong, do not enable the module
            return false;
        }
View Full Code Here

        } catch(ConfigException ce) {
            throw new AdminEventListenerException(ce.getMessage());
        } catch(Throwable th) {
            AdminEventListenerException aele =
                           new AdminEventListenerException(th.getMessage());
            aele.initCause(th);
            throw aele;
        }finally {
            ResourcesUtil.resetEventConfigContext();
        }
    }
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.