Maybe this is more precise:

<route xmlns="http://camel.apache.org/schema/spring";
id="app.adapter.sap.customer">
        <from 
uri="rabbitmq://lb.mq-dev.jppol.net:5672/customer.from.lineup.ex?queue=ha.customer.from.lineup.q&amp;autoAck=false&amp;autoDelete=false&amp;bridgeEndpoint=true&amp;automaticRecoveryEnabled=true&amp;publisherAcknowledgements=true&amp;connectionFactory=#rabbitMqConnectionFactory"/>
        <onException>
            <redeliveryPolicy maximumRedeliveries="0"/>
            <to uri="direct:app.adapter.sap.customer.validationErrors"/>
        </onException>
        <setExchangePattern pattern="InOnly"/>
        <convertBodyTo type="java.lang.String"/>
        <to uri="log:dk.jppol.ip.app.adapter.sap?showAll=true"/>
        <setProperty propertyName="ServiceBusBusinessID">
            <xpath>(//*[local-name()='ADP_CUSTOMERID'])[1]/text()</xpath>
        </setProperty>
        <setProperty propertyName="ServiceBusTransactionId">
            <header>ServiceBusTransactionId</header>
        </setProperty>
        <bean method="initiated"/>
        <to uri="direct:app.adapter.sap.customer.description"/>
        <bean/>
        <to uri="validator:/schema/ZADP_CUST_CREA_UPD_V1_20160905.xsd"/>
        <log message="Calling SAP from app.adapter.sap.customer"/>
        <to uri="cxf:bean:customer"/>
        <convertBodyTo type="java.lang.String"/>
        <choice>
            <when>

<xpath>(//*[local-name()='E_ERRORNUMBER'])[1]/text()!='000'</xpath>
                <setProperty propertyName="SapError">
                    <xpath>(//*[local-name()='E_ERRORNUMBER'])[1]/text()</xpath>
                </setProperty>
                <setProperty propertyName="SapMessage">
                    <xpath>(//*[local-name()='E_MESSAGE01'])[1]/text()</xpath>
                </setProperty>
                <bean method="error"/>
            </when>
            <otherwise>
                <bean method="finished"/>
            </otherwise>
        </choice>
        <to uri="bean:prepareOutputService"/>
        <log message="Received response from SAP on route
app.adapter.sap.customer"/>
        <to 
uri="rabbitmq://lb.mq-dev.jppol.net:5672/customer.from.lineup.response.ex?autoAck=false&amp;autoDelete=false&amp;bridgeEndpoint=true&amp;automaticRecoveryEnabled=true&amp;publisherAcknowledgements=true&amp;connectionFactory=#rabbitMqConnectionFactory&amp;skipQueueDeclare=true"/>
    </route>

2016-09-15 16:48 GMT+02:00 souciance <souciance.eqdam.ras...@gmail.com>:
> Everything looks ok, can you share your route?
>
> On Thu, Sep 15, 2016 at 12:05 PM, stefanmeisner [via Camel] <
> ml-node+s465427n5787594...@n5.nabble.com> wrote:
>
>>
>> Connection factory:
>>
>>     <bean id="rabbitMqConnectionFactory" class="com.rabbitmq.client.
>> ConnectionFactory">
>>         <property name="uri" value="amqp://sb:xxx...@lb.mq-
>> test.jppol.net:5672/servicebus"/>
>>     </bean>
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://camel.465427.n5.nabble.com/Camel-route-stops-
>> consuming-from-RabbitMQ-queue-tp5787591p5787594.html
>> To start a new topic under Camel - Users, email
>> ml-node+s465427n465428...@n5.nabble.com
>> To unsubscribe from Camel - Users, click here
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
>> .
>> NAML
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-route-stops-consuming-from-RabbitMQ-queue-tp5787591p5787606.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to