Package org.apache.servicemix.bpe

Examples of org.apache.servicemix.bpe.BPEComponent


        Object payload = input.get(inputPartName);
        Source inputSource = getSourceFromPayload(payload);
        // Create and send exchange
        try {
            BPEEndpoint endpoint = BPEEndpoint.getCurrent();
            BPEComponent component = (BPEComponent) endpoint.getServiceUnit().getComponent();
            DeliveryChannel channel = ((BPELifeCycle) component.getLifeCycle()).getContext().getDeliveryChannel();
            MessageExchangeFactory factory = channel.createExchangeFactory();
            // TODO: need to configure mep
            MessageExchange me = factory.createExchange(this.mep);
            me.setInterfaceName(interfaceName);
            me.setService(serviceName);
            if (endpointName != null) {
                ServiceEndpoint ep = component.getComponentContext().getEndpoint(serviceName, endpointName);
                me.setEndpoint(ep);
            }
            // TODO: set endpoint
            me.setOperation(operationName);
            NormalizedMessage nm = me.createMessage();
View Full Code Here


        Object payload = input.get(inputPartName);
        Source inputSource = getSourceFromPayload(payload);
        // Create and send exchange
        try {
            BPEEndpoint endpoint = BPEEndpoint.getCurrent();
            BPEComponent component = (BPEComponent) endpoint.getServiceUnit().getComponent();
            DeliveryChannel channel = ((BPELifeCycle) component.getLifeCycle()).getContext().getDeliveryChannel();
            MessageExchangeFactory factory = channel.createExchangeFactory();
            // TODO: need to configure mep
            MessageExchange me = factory.createExchange(this.mep);
            me.setInterfaceName(interfaceName);
            me.setService(serviceName);
View Full Code Here

  public void testDeploy() throws Exception {
        URL url = getClass().getClassLoader().getResource("loanbroker/loanbroker.bpel");
        File path = new File(new URI(url.toString()));
        path = path.getParentFile();
       
        BPEComponent bpe = new BPEComponent();
        ((BPELifeCycle) bpe.getLifeCycle()).doInit();
    BPEDeployer deployer = new BPEDeployer(bpe);
    assertTrue(deployer.canDeploy("loanbroker", path.getAbsolutePath()));
   
    ServiceUnit su = deployer.deploy("loanbroker", path.getAbsolutePath());
    assertNotNull(su);
View Full Code Here

TOP

Related Classes of org.apache.servicemix.bpe.BPEComponent

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.