Package com.sun.enterprise.admin.event

Examples of com.sun.enterprise.admin.event.AdminEventListenerException


                return;
            }
            webContainer.updateHttpService(config.getHttpService(),
                                           configContext);
        } catch (Exception e) {
           throw new AdminEventListenerException(e);
        }
    }
View Full Code Here


                return;
            }
            webContainer.updateHttpService(config.getHttpService(),
                                           configContext);
        } catch (Exception e) {
           throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

                    AdminEventCache.getInstance(mInstanceName);
            cache.setRestartNeeded(true);

            // if there is an exception thrown when loading modules
            // rethrow the exception
            AdminEventListenerException ale = null;
            ale = multicastResult.getFirstAdminEventListenerException();
            if (ale != null) {
                sLogger.log(Level.WARNING, "mbean.event_failed",
                    ale.getMessage());
                DeploymentException de =
                    new DeploymentException(ale.getMessage());
                de.initCause(ale);
                throw de;
            }
        }
        return eventSuccess;
View Full Code Here

    String inst = event.getInstanceName();
    if (inst == null) {
       String msg = localStrings.getString(
            "admin.server.core.channel.impl.no_inst_name");
       throw new AdminEventListenerException(msg);
    }

    RMIClient client = AdminChannel.getRMIClient(inst);

    if (client == null) {
       String msg = localStrings.getString(
            "admin.server.core.channel.impl.no_rmi_client", inst);
       throw new AdminEventListenerException(msg);
    }
    boolean resNeeded = client.isRestartNeeded();

    if (event.getActionType() == DynamicReconfigEvent.ACTION_ENABLED) {
        if (resNeeded == true) {
            // can not set dynamic reconfig, throw exception
           String msg = localStrings.getString(
            "admin.server.core.channel.impl.restart_required", inst);
            throw new AdminEventListenerException(msg);
        }
    } else if (event.getActionType() == DynamicReconfigEvent.ACTION_DISABLED) {
        client.setRestartNeeded(true);
    }
  }
View Full Code Here

                handleUpdate(rcc, change);
            }
        } catch (final AdminEventListenerException ae) {
            throw ae;
        } catch (final Exception e) {
            throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

                        }
                    }
                }
            }
        } catch (final Exception e) {
            throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

                        }
                    }
                }
            }
        } catch (final Exception e) {
            throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

            handleUpdate(parent, (ElementProperty)changedObject);
        } else if (changedObject instanceof ApplicationRef) {
            handleUpdate(rcc, (ApplicationRef)changedObject);
        }
        else {
            throw new AdminEventListenerException(CMBStrings.get("InternalError", "Can't handle this: ", changedObject.getClass()));
        }
    }
View Full Code Here

            }
            else {
                unregister(mbean);
            }
        }catch(Exception e) {
            throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.event.AdminEventListenerException

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.