New Consumer instance is created when a message is sent on other queue
This post was updated on .
I am facing an issue while developing a basic application of server client. Each client will have a dedicated client queue to consume message from the server and a single queue for a server to consume messages from the clients.
There are basically two client with worker1 and worker2 queue.
Now whenever I load configuration file using
ApplicationContext ctx = new ClassPathXmlApplicationContext("app-context.xml");
OrderService orderService = (OrderService) ctx.getBean("orderService");
"and send the message to any queue of worker a consumer is created on response queue."