Package org.apache.ode.bpe.bped

Examples of org.apache.ode.bpe.bped.EventDirector


                outputPartName = (String) parts.keySet().iterator().next();
            }
        }

        SimpleRequestMessageEvent msg = createEvent(exchange, inputPartName);
        EventDirector ed = ((BPEComponent) getServiceUnit().getComponent()).getEventDirector();
        try {
            IResponseMessage response;
            try {
                BPEEndpoint.setCurrent(this);
                response = ed.sendEvent(msg, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
            IInteraction payload = response.getPart(outputPartName);
            if (response.getFault() != null) {
View Full Code Here


    public void run() {
        try {
            if (log.isDebugEnabled()) {
                log.debug("Timer " + te + " elapsed at " + new Date());
            }
            EventDirector ed = ((BPEComponent) endpoint.getServiceUnit().getComponent()).getEventDirector();
            try {
                BPEEndpoint.setCurrent(endpoint);
                ed.getIInternalEventDirector().sendEvent(this, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

        return bpels != null && bpels.length == 1;
    }

    public ServiceUnit deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
        try {
            EventDirector ed = ((BPEComponent) component).getEventDirector();
            IDeployer deployer = ed.getDeployer(DeployTypeEnum.BPEL);
            Collection defKeys = deployer.loadDefinition(new FileSystemJarInputStream(new File(serviceUnitRootPath)),
                    false);
            // Build the Service Unit
            BPEServiceUnit su = new BPEServiceUnit();
            su.setComponent(component);
View Full Code Here

    }

    public void undeploy(ServiceUnit su) throws DeploymentException {
        try {
            BPEServiceUnit bpeSU = (BPEServiceUnit) su;
            EventDirector ed = ((BPEComponent) component).getEventDirector();
            IDeployer deployer = ed.getDeployer(DeployTypeEnum.BPEL);
            for (Iterator i = bpeSU.getDefinitionKeys().iterator(); i.hasNext();) {
                deployer.removeDefinition(((BPELDefinitionKey) i.next()).getKey());
            }
            su.shutDown();
        } catch (DeploymentException e) {
View Full Code Here

        return bpels != null && bpels.length == 1;
  }

  public ServiceUnit deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
    try {
      EventDirector ed = ((BPEComponent) component).getEventDirector();
      IDeployer deployer = ed.getDeployer(DeployTypeEnum.BPEL);
      Collection defKeys = deployer.loadDefinition(new FileSystemJarInputStream(new File(serviceUnitRootPath)), false);
      // Build the Service Unit
      BPEServiceUnit su = new BPEServiceUnit();
      su.setComponent(component);
            su.setName(serviceUnitName);
View Full Code Here

  }

    public void undeploy(ServiceUnit su) throws DeploymentException {
        try {
            BPEServiceUnit bpeSU = (BPEServiceUnit)su;
            EventDirector ed = ((BPEComponent) component).getEventDirector();
            IDeployer deployer = ed.getDeployer(DeployTypeEnum.BPEL);
            for (Iterator i = bpeSU.getDefinitionKeys().iterator(); i.hasNext(); ) {
                deployer.removeDefinition(((BPELDefinitionKey)i.next()).getKey());
            }
            su.shutDown();
        } catch (DeploymentException e) {
View Full Code Here

        return bpels != null && bpels.length == 1;
  }

  public ServiceUnit deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
    try {
      EventDirector ed = ((BPEComponent) component).getEventDirector();
      IDeployer deployer = ed.getDeployer(DeployTypeEnum.BPEL);
      Collection defKeys = deployer.loadDefinition(new FileSystemJarInputStream(new File(serviceUnitRootPath)), false);
      // Build the Service Unit
      BPEServiceUnit su = new BPEServiceUnit();
      su.setComponent(component);
            su.setName(serviceUnitName);
View Full Code Here

  }

    public void undeploy(ServiceUnit su) throws DeploymentException {
        try {
            BPEServiceUnit bpeSU = (BPEServiceUnit)su;
            EventDirector ed = ((BPEComponent) component).getEventDirector();
            IDeployer deployer = ed.getDeployer(DeployTypeEnum.BPEL);
            for (Iterator i = bpeSU.getDefinitionKeys().iterator(); i.hasNext(); ) {
                deployer.removeDefinition(((BPELDefinitionKey)i.next()).getKey());
            }
            su.shutDown();
        } catch (DeploymentException e) {
View Full Code Here

    msg.setStaticKey(bsk);
    XMLInteractionObject interaction = new XMLInteractionObject();
    interaction.setDocument(transformer.toDOMDocument(exchange.getMessage("in")));
    msg.setPart(inputPartName, interaction);
       
        EventDirector ed = ((BPEComponent) getServiceUnit().getComponent()).getEventDirector();
        try {
            IResponseMessage response;
            try {
                BPEEndpoint.setCurrent(this);
                response = ed.sendEvent(msg, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
            IInteraction payload = response.getPart(outputPartName);
            if (response.getFault() != null) {
View Full Code Here

    public void run() {
        try {
            if (log.isDebugEnabled()) {
                log.debug("Timer " + te + " elapsed at " + new Date());
            }
            EventDirector ed = ((BPEComponent) endpoint.getServiceUnit().getComponent()).getEventDirector();
            try {
                BPEEndpoint.setCurrent(endpoint);
                ed.getIInternalEventDirector().sendEvent(this, true);
            } finally {
                BPEEndpoint.setCurrent(null);
            }
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.ode.bpe.bped.EventDirector

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.