Hi,

I have few web-services deployed into ServiceMix and have a BPEL to
communicate to the first web service which will in turn orchestrate by
calling the other two services. After deploying the code into ServiceMix web
module inside Jboss, i get the following error when i run my client program.


error type="javax.jbi.messaging.MessagingException" message="Could not find
route for exchange: MessageExchange[

Following is the servicemix conf  snippet

 <sm:activationSpecs>
    
    <sm:activationSpec>
      <sm:component>
        <bpe:component
bpelResource="classpath:META-INF/POC_5-ControllerPool.bpel" />
      </sm:component>
    </sm:activationSpec>

           <sm:activationSpec componentName="orderServiceHttpBinding"
service="xfire:httpBinding" destinationService="xfire:OrderService">
                 <sm:component>
                   <bean 
class="org.apache.servicemix.components.http.HttpInOutBinding"
abstract="false" singleton="true" lazy-init="default" autowire="default"
dependency-check="default" /> 
                 </sm:component>
           </sm:activationSpec>
       
       <sm:activationSpec
            componentName="orderService"
            service="xfire:OrderService">
            <sm:component>
               <bean
class="com.test.servicemix.components.xfire.XFireBinding">
                   <property name="xfire" ref="xfire"/>
               </bean>
            </sm:component>
       </sm:activationSpec>
       
           <sm:activationSpec componentName="crimServiceHttpBinding"
service="xfire:httpBinding" destinationService="xfire:CrimService">
                 <sm:component>
                   <bean 
class="org.apache.servicemix.components.http.HttpInOutBinding"
abstract="false" singleton="true" lazy-init="default" autowire="default"
dependency-check="default" /> 
                 </sm:component>
           </sm:activationSpec>
       
       <sm:activationSpec
            componentName="crimService"
            service="xfire:CrimService">
            <sm:component>
               <bean
class="com.test.servicemix.components.xfire.XFireBinding">
                   <property name="xfire" ref="xfire"/>
               </bean>
            </sm:component>
       </sm:activationSpec>

           <sm:activationSpec componentName="drugServiceHttpBinding"
service="xfire:httpBinding" destinationService="xfire:DrugService">
                 <sm:component>
                   <bean 
class="org.apache.servicemix.components.http.HttpInOutBinding"
abstract="false" singleton="true" lazy-init="default" autowire="default"
dependency-check="default" /> 
                 </sm:component>
           </sm:activationSpec>
       
       <sm:activationSpec
            componentName="drugService"
            service="xfire:DrugService">
            <sm:component>
               <bean
class="com.test.servicemix.components.xfire.XFireBinding">
                   <property name="xfire" ref="xfire"/>
               </bean>
            </sm:component>
       </sm:activationSpec>

    </sm:activationSpecs>


Following is the BPEL snippet

<?xml version="1.0" encoding="UTF-8"?>
<process xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
    xmlns:tns="http://services.bpelpoc.test.com/drugservice";
    xmlns:ExecPool="http://www.example.com/ControllerPool_To_ExecPool";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:tns2="http://services.bpelpoc.test.com/orderservice";
    xmlns:wsdlns0="http://www.example.com/ClientPool_And_ControllerPool_PLT";
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
   
xmlns:wsdlns3="http://www.example.com/ControllerPool_And_OrderServiceHttpPort_PLT";
    xmlns:wsdlns1="http://www.example.com/ClientPool_To_ControllerPool";
    xmlns:ClientPool="http://www.example.com/ClientPool_To_ControllerPool";
    xmlns:wsdlns2="http://services.bpelpoc.test.com/orderservice";
    xmlns:xs="http://www.w3.org/2001/XMLSchema";
    xmlns:tns1="http://services.bpelpoc.test.com/crimservice";
    xmlns:this="http://www.example.com/ControllerPool";
    name="ControllerPool"
    targetNamespace="http://www.example.com/ControllerPool";
    queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
    expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
    suppressJoinFailure="yes" abstractProcess="no" exitOnStandardFault="no">
    <rdfs:label xml:space="preserve">ControllerPool</rdfs:label>
    <import namespace="http://www.example.com/ControllerPool";
        location="urn:/POC_5-ControllerPool.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
        <partnerLink name="ClientPool_And_ControllerPool_PLink"
            partnerLinkType="wsdlns0:ClientPool_And_ControllerPool_PLT"
            myRole="ControllerPool_Role" initializePartnerRole="no"/>
        <partnerLink
            name="ControllerPool_And_OrderServiceHttpPort_PLink"
           
partnerLinkType="wsdlns3:ControllerPool_And_OrderServiceHttpPort_PLT"
            partnerRole="OrderServiceHttpPort_Role"
initializePartnerRole="yes"/>
    </partnerLinks>
    <variables>
        <variable name="Order" messageType="wsdlns1:Order"/>
        <variable name="createOrderResponse"
messageType="tns2:createOrderResponse"/>
        <variable name="createOrderRequest"
messageType="tns2:createOrderRequest"/>
    </variables>
    <sequence name="ControllerPool-Sequence">
        <receive name="Trigger-Receive"
            partnerLink="ClientPool_And_ControllerPool_PLink"
            portType="ClientPool:ClientPool_To_ControllerPool_PortType"
            operation="Trigger" variable="Order" createInstance="yes">
            <rdfs:label xml:space="preserve">Trigger</rdfs:label>
        </receive>
        <invoke name="CreateOrder-Invoke"
            partnerLink="ControllerPool_And_OrderServiceHttpPort_PLink"
            portType="tns2:OrderService" operation="createOrder"
            inputVariable="createOrderRequest"
outputVariable="createOrderResponse">
            <rdfs:label xml:space="preserve">CreateOrder</rdfs:label>
        </invoke>
    </sequence>
</process>

Please let me know whether something went wrong with the configurations.

Thanks, Sat
-- 
View this message in context: 
http://www.nabble.com/BPEL-Invocation%3A-javax.jbi.messaging.MessagingException-tf2116286.html#a5835501
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to