Rather than writing code using the messaging APIs directly, you'd be better off using a Messaging gateway instead
Code:public interface myGateway { MyResult sendAndReceive(MyEntity myEntity); } <int:gateway service-interface="foo.MyGateway" default-request-channel="toRabbit" />


Reply With Quote
