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&autoDelete=false&queue=testQueue&exchangeType=direct&autoAck=false&concurrentConsumers=1&BridgeEndpoint=true"
/>
</when>
</choice>
</route>
<route id="serviceOutInputRoute">
<from
uri="rabbitmq://localhost/testEx?routingKey=route1&autoDelete=false&queue=testQueue&exchangeType=direct&autoAck=false&concurrentConsumers=1&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&autoDelete=false&queue=testQueue1&exchangeType=direct&autoAck=false&concurrentConsumers=1&BridgeEndpoint=true"
/>
</route>
<route id="serviceOutOutputRoute">
<from
uri="rabbitmq://localhost/testEx?routingKey=route2&autoDelete=false&queue=testQueue1&exchangeType=direct&autoAck=false&concurrentConsumers=1&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.