Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.WebServiceEndpoint


             throws AdminEventListenerException {

        try {
            ConfigBean bean = getWSEPBean(event, true);
            if (bean instanceof WebServiceEndpoint) {
                WebServiceEndpoint wsep = (WebServiceEndpoint) bean;
                String epName = wsep.getName();
                String appId = getApplicationId(wsep);

                // disables message trace for this endpoint
                MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();
                traceMgr.disable(appId, epName);

                AppServWSMonitorLifeCycleProvider aplifeProv =
                    new AppServWSMonitorLifeCycleProvider();
                aplifeProv.reconfigureMonitoring(wsep, appId,
                MonitoringLevel.instance(wsep.getMonitoring()),
                MonitoringLevel.instance("OFF"));

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


        try {
            // set message in history size
            ConfigBean bean = getWSEPBean(event, false);
            if (bean instanceof WebServiceEndpoint) {
                WebServiceEndpoint wsep = (WebServiceEndpoint) bean;
                WebServiceEndpoint oWsep =
                    (WebServiceEndpoint) getWSEPBean(event, true);

                // monitoring level
                String newMonitoring = wsep.getMonitoring();
                String oldMonitoring = oWsep.getMonitoring();

                // history size
                int historySize = 25;

                // end point name
                String epName = wsep.getName();

                String hs = wsep.getMaxHistorySize();
                if (hs != null) {
                    historySize = Integer.parseInt(hs);
                }

                // application id
                String appId = getApplicationId(wsep);

                // message trace manager
                MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();

                // monitoring level changed
                if ( (newMonitoring != null) && (oldMonitoring != null)
                        && (!newMonitoring.equals(oldMonitoring)) ) {

                    // monitoring level is changed to HIGH
                    if ("HIGH".equalsIgnoreCase(newMonitoring)) {
                        traceMgr.enable(appId, epName, historySize);

                    // monitoirng level is changed from HIGH to LOW or OFF
                    } else if ("HIGH".equalsIgnoreCase(oldMonitoring)) {
                        traceMgr.disable(appId, epName);
                    }
                } else {
                    // old history size
                    String oldHs = oWsep.getMaxHistorySize();
                    int oldHistorySize = 0;
                    if (oldHs != null) {
                        oldHistorySize = Integer.parseInt(oldHs);
                    }

                    // history size has changed and monitoring level is HIGH
                    if ((historySize != oldHistorySize)
                            && ("HIGH".equalsIgnoreCase(newMonitoring))) {

                        traceMgr.setMessageHistorySize(appId, epName,
                                                        historySize);
                    }
                }
                   
                AppServWSMonitorLifeCycleProvider aplifeProv =
                    new AppServWSMonitorLifeCycleProvider();
                aplifeProv.reconfigureMonitoring(wsep, appId,
                MonitoringLevel.instance(oldMonitoring),
                MonitoringLevel.instance(newMonitoring));
               
                // Check for jbiEnabled Flag
                boolean jbiEnabledFlag = wsep.isJbiEnabled();
                boolean oldJbiEnabledSetting =oWsep.isJbiEnabled();
                if(jbiEnabledFlag  != oldJbiEnabledSetting) {
                    String endpointURI = WebServiceMgrBackEnd.getManager().
                              getEndpointURI(getApplicationId(wsep) + "#" + epName);
                    if(endpointURI != null && (ServiceEngineRtObjectFactory.getInstance().getFacade() != null)) {
                        ServiceEngineRtObjectFactory.getInstance().
View Full Code Here

             throws AdminEventListenerException {

        try {
            ConfigBean bean = getWSEPBean(event, false);
            if (bean instanceof WebServiceEndpoint) {
                WebServiceEndpoint wsep = (WebServiceEndpoint) bean;
                int historySize = 25;
                String epName = wsep.getName();
                String appId = getApplicationId(wsep);

                String hs = wsep.getMaxHistorySize();
                if (hs != null) {
                    historySize = Integer.parseInt(hs);
                }

                // monitoring level
                String newMonitoring = wsep.getMonitoring();

                if ("HIGH".equalsIgnoreCase(newMonitoring)) {
                    // enables message trace for this endpoint
                    MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();
                    traceMgr.enable(appId, epName, historySize);
                }

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

            _logger.log(Level.FINE, msg);
            return null;
        }
       
        TransformationRule[] tRules = null;
        WebServiceEndpoint wsep = null;
        if (cb instanceof  J2eeApplication) {
            wsep = ((J2eeApplication)cb).getWebServiceEndpointByName(wsepName);
        } else if (cb instanceof EjbModule) {
            wsep = ((EjbModule)cb).getWebServiceEndpointByName(wsepName);
        } else if (cb instanceof WebModule) {
            wsep = ((WebModule)cb).getWebServiceEndpointByName(wsepName);
        else {
            return null;
        }
        if (wsep != null) {
            tRules = wsep.getTransformationRule();
        }
        for(int index=0; index < tRules.length; index++) {
            retList.add(oNameMap.get(tRules[index].getName()));
        }
        return retList;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.WebServiceEndpoint

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.