Hi,

  I am queuing both input to the Rest Service and output from the Rest
Service. Everything is working fine with the queues. Even camel's stream:out
is displaying the result, but mock is not working it is displaying the input
I provided for the Rest Service. I am using Rest client for testing my
services, using RabbitMQ and camel  for queuing and routing.  mock:result
worked fine when using activemq but with rabbitmq it is returning the input
i sent to the Rest Service. Please suggest how can I get/return the Exchange
from Queue.

Here is my route info from blueprint:

*<route id="queueRouting">
        <from uri="cxfrs:bean:viaServer" />
        <choice>
                <when>
                        <simple>${in.header.destination} == 'service1'</simple>
                        <bean ref="transformationUtility"
method="transformRequestOrResponse(${in.header.destination},${in.header.actionType},${body},'true')"
/>
                        <to
uri="rabbitmq://localhost/testEx?routingKey=route1&amp;autoDelete=false&amp;queue=testQueue&amp;exchangeType=direct&amp;autoAck=false&amp;concurrentConsumers=1&amp;BridgeEndpoint=true"
/>
                </when>
        </choice>
</route>

<route id="serviceOutInputRoute">
        <from
uri="rabbitmq://localhost/testEx?routingKey=route1&amp;autoDelete=false&amp;queue=testQueue&amp;exchangeType=direct&amp;autoAck=false&amp;concurrentConsumers=1&amp;BridgeEndpoint=true"
/>
        <bean ref="serviceRequestService"
method="process(${in.header.uuId},${in.header.actionType},${body})" />
        <bean ref="transformationUtility"
method="transformRequestOrResponse(${in.header.destination},${in.header.actionType},${body},'false')"
/>
        <to
uri="rabbitmq://localhost/testEx?routingKey=route2&amp;autoDelete=false&amp;queue=testQueue1&amp;exchangeType=direct&amp;autoAck=false&amp;concurrentConsumers=1&amp;BridgeEndpoint=true"
/>
</route>

<route id="serviceOutOutputRoute">
        <from
uri="rabbitmq://localhost/testEx?routingKey=route2&amp;autoDelete=false&amp;queue=testQueue1&amp;exchangeType=direct&amp;autoAck=false&amp;concurrentConsumers=1&amp;BridgeEndpoint=true"
                                />
        <to uri="mock:result" />
        
</route>
*

Thanks
Srilatha.
 



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/mock-is-not-returning-message-from-queue-tp5722546.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to