Package com.sun.messaging.bridge.service

Examples of com.sun.messaging.bridge.service.FaultInjection


       }
     Properties props = (Properties)msg.getObject();

       String faultName = target;
       String faultSelector = (String)props.getProperty("selector");
       FaultInjection fi = FaultInjection.getInjection();
       boolean faultOn = true;

       String enabledStr = props.getProperty("enabled");
       if (enabledStr != null && enabledStr.equalsIgnoreCase("false")) {
           if (faultName == null) {
               fi.setFaultInjection(false);
           } else {
              fi.unsetFault(faultName);
           }
       } else {
           fi.setFaultInjection(true);
           if (faultName != null) {
               try {
                   fi.setFault(faultName, faultSelector, props);
               } catch (Exception e) {
                   _bc.logError(_bmr.getKString(_bmr.E_ADMIN_SET_FAULT_FAILED, faultName), e);
                   throw e;
               }
           }
View Full Code Here

TOP

Related Classes of com.sun.messaging.bridge.service.FaultInjection

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.