Package javax.jbi.management

Examples of javax.jbi.management.DeploymentException


            serviceUnitName).stop();
      }
      component.getEndPointRegistry().deactiveServiceUnitEndpoints(
          serviceUnitName);
    } catch (JBIException e) {
      throw new DeploymentException(
          "Unable to deactivate service unit endpoints for "
              + serviceUnitName, e);
    }
  }
View Full Code Here


    endPointRouterThead = new Thread(endPointRouter);
    endPointRouterThead.start();
    try {
      component.getEndPointRegistry().activeComponentEndpoints();
    } catch (JBIException e) {
      throw new DeploymentException(
          "Unable to activate component endpoints", e);
    }
  }
View Full Code Here

      }

      try {
        component.getEndPointRegistry().deactiveComponentEndpoints();
      } catch (JBIException e) {
        throw new DeploymentException(
            "Unable to activate component endpoints", e);
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

      su.init();
      _serviceUnits.put(serviceUnitID, su);
    } catch (Exception ex) {
      String errmsg = __msgs.msgServiceUnitInitFailed(serviceUnitID);
      __log.error(errmsg, ex);
      throw new DeploymentException(errmsg, ex);
    }
  }
View Full Code Here

    try {
      su.shutdown();
    } catch (Exception ex) {
      String errmsg = __msgs.msgServiceUnitShutdownFailed(serviceUnitID);
      __log.error(errmsg, ex);
      throw new DeploymentException(errmsg, ex);
    }
  }
View Full Code Here

    if (su == null) {
      // Should not really happen if JBI is working.
      String errmsg = "Unexpected state; start() called before init()";
      IllegalStateException ex = new IllegalStateException(errmsg);
      __log.error(errmsg, ex);
      throw new DeploymentException(errmsg, ex);
    }

    try {
      su.start();
    } catch (Exception ex) {
      String errmsg = __msgs.msgServiceUnitStartFailed(serviceUnitID);
      __log.error(errmsg, ex);
      throw new DeploymentException(errmsg, ex);
    }

  }
View Full Code Here

    if (su == null) {
      // Should not really happen if JBI is working.
      String errmsg = "Unexpected state; stop() called before init()";
      IllegalStateException ex = new IllegalStateException(errmsg);
      __log.error(errmsg, ex);
      throw new DeploymentException(errmsg, ex);
    }

    try {
      su.stop();
    } catch (Exception ex) {
      String errmsg = __msgs.msgServiceUnitStopFailed(serviceUnitID);
      __log.error(errmsg, ex);
      throw new DeploymentException(errmsg, ex);
    }

  }
View Full Code Here

    // Implementation of javax.jbi.component.ServiceUnitManager
   
    public final void shutDown(final String suName) throws DeploymentException {
        LOG.info(new Message("SU.MANAGER.SHUTDOWN", LOG) + suName);
        if (suName == null) {
            throw new DeploymentException(new Message("SU.NAME.NULL", LOG).toString());
        }
        if (suName.length() == 0) {
            throw new DeploymentException(new Message("SU.NAME.EMPTY", LOG).toString());
        }
        if (!serviceUnits.containsKey(suName)) {
            throw new DeploymentException(new Message("UNDEPLOYED.SU", LOG).toString() + suName);
        }
        serviceUnits.remove(suName);
    }
View Full Code Here

   
    public final String deploy(final String suName, final String suRootPath) throws DeploymentException {
        LOG.info(new Message("SU.MANAGER.DEPLOY", LOG) + suName + " path: " + suRootPath);
       
        if (suName == null) {
            throw new DeploymentException(new Message("SU.NAME.NULL", LOG).toString());
        }
        if (suName.length() == 0) {
            throw new DeploymentException(new Message("SU.NAME.EMPTY", LOG).toString());
        }
        if (serviceUnits.containsKey(suName)) {
            throw new DeploymentException(new Message("DUPLICATED.SU", LOG) + suName);
        }
       
        if (suRootPath == null) {
            throw new DeploymentException(new Message("SU.ROOT.NULL", LOG).toString());
        }
        if (suRootPath.length() == 0) {
            throw new DeploymentException(new Message("SU.ROOT.EMPTY", LOG).toString());
        }
       
        String msg =  "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
            + "<jbi-task xmlns=\"http://java.sun.com/xml/ns/jbi/management-message\" " 
            "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
View Full Code Here

   
    public final String undeploy(final String suName, final String suRootPath) throws DeploymentException {
        LOG.info(new Message("SU.MANAGER.UNDEPLOY", LOG) + suName + " path: " + suRootPath);
       
        if (suName == null) {
            throw new DeploymentException(new Message("SU.NAME.NULL", LOG).toString());
        }
        if (suName.length() == 0) {
            throw new DeploymentException(new Message("SU.NAME.EMPTY", LOG).toString());
        }
               
        if (suRootPath == null) {
            throw new DeploymentException(new Message("SU.ROOT.NULL", LOG).toString());
        }
        if (suRootPath.length() == 0) {
            throw new DeploymentException(new Message("SU.ROOT.EMPTY", LOG).toString());
        }
       
       
        String msg =  "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
            + "<jbi-task xmlns=\"http://java.sun.com/xml/ns/jbi/management-message\" " 
View Full Code Here

TOP

Related Classes of javax.jbi.management.DeploymentException

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.