Package com.sun.enterprise.admin.event

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


            sLogger.log(Level.FINE, "mbean.event_res",
                result.getResultCode());
            sLogger.log(Level.FINEST, "mbean.event_reply",
                result.getAllMessagesAsString());

            AdminEventListenerException ale = null;
            ale = result.getFirstAdminEventListenerException();
            if (ale != null) {
                sLogger.log(Level.WARNING, "mbean.event_failed",
                    ale.getMessage());
                DeploymentException de =
                    new DeploymentException(ale.getMessage());
                de.initCause(ale);
                throw de;
            }
        }
    }
View Full Code Here


                MonitoringLevel.instance(wsep.getMonitoring()),
                MonitoringLevel.instance("OFF"));

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

                              endpointURI,jbiEnabledFlag);
                    }
                }
            }
        } catch (Exception e) {
            throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

                aplifeProv.reconfigureMonitoring(wsep, appId,
                MonitoringLevel.instance("OFF"),
                MonitoringLevel.instance(wsep.getMonitoring()));
            }
        } catch (Exception e) {
            throw new AdminEventListenerException(e);
        }
    }
View Full Code Here

                WebServiceConfigImpl nwsc = null;
                if ( newBean == null) {
                       if ( ! isRemove) {
                            // only remove operation can not have
                            // new element in the new config context
                            throw new AdminEventListenerException();
                       } else {
                            nwsc = wsc;
                       }
                } else {
                    nwsc = new WebServiceConfigImpl(
                        (WebServiceEndpoint) newBean.parent());
                }
                if ( tf == null) {
                    // create new filter to handle transformation
                    tf = (TransformFilter) trh.registerFilter(wsc);
                } else {
                    if ( isRemove) {
                        String applyTo = tr.getApplyTo();
                        if ( applyTo.equals(Constants.BOTH) ||
                            applyTo.equals(Constants.REQUEST)) {
                            com.sun.enterprise.admin.wsmgmt.config.spi.TransformationRule[] rtrs =
                            nwsc.getRequestTransformationRule();
                            tf.resetRequestChain( pruneList( rtrs,
                            tr.getName()));
                        }
                        if ( applyTo.equals(Constants.BOTH) ||
                            applyTo.equals(Constants.RESPONSE)) {
                            com.sun.enterprise.admin.wsmgmt.config.spi.TransformationRule[] rtrs =
                            nwsc.getResponseTransformationRule();
                            tf.resetResponseChain( pruneList( rtrs,
                            tr.getName()));
                        }
                    } else {
                        tf.resetRequestChain(
                            nwsc.getRequestTransformationRule());
                        tf.resetResponseChain(
                            nwsc.getResponseTransformationRule());
                    }
                }
           }

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

        try{
          synchronizeDCRXml(e);
        }catch(SynchronizationException ex)
        {
            _logger.log(Level.SEVERE, "clb.admin.fileSyncFailed", ex.getMessage());
            throw new AdminEventListenerException(ex);
        }
    }
View Full Code Here

         try{
          synchronizeDCRXml(e);
        }catch(SynchronizationException ex)
        {
            _logger.log(Level.SEVERE, "clb.admin.fileSyncFailed", ex.getMessage());
            throw new AdminEventListenerException(ex);
        }
    }
View Full Code Here

       try{
          synchronizeDCRXml(e);
        }catch(SynchronizationException ex)
        {
            _logger.log(Level.SEVERE, "clb.admin.fileSyncFailed", ex.getMessage());
             throw new AdminEventListenerException(ex);
        }
    }
View Full Code Here

     */
    private String getInstanceNameFromXPath(String xpath)
            throws AdminEventListenerException {
        int index = xpath.indexOf(pattern);
        if (index == -1){
            throw new AdminEventListenerException("Malformed xpath \"" +
                    xpath + "\", either it does not contain instance name or "
                    + "not meant for this cluster");
        }
        index += pattern.length();
        int lastIndex=xpath.lastIndexOf("'");
        if (lastIndex == -1 || lastIndex <= index){
            throw new AdminEventListenerException("Malformed xpath \"" +
                    xpath + "\", does not contain instance name");
        }
        return xpath.substring(index, lastIndex);
    }
View Full Code Here

        try{
          synchronizeCLBXml(e);
        }catch(SynchronizationException ex)
        {
            _logger.log(Level.SEVERE, "clb.admin.FileSyncCLBFailed", ex.getMessage());
            throw new AdminEventListenerException(ex);
        }
    }
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.