Hi, i am using Rabbitmq Java client API.i am sending two number from GUI to producer and producer put into queue another side consumer can listen the queue and read it and perform the addition of two number and put result on queue then again my producer will listen the my response queue and retrieve the result. code:
while (runInfinite) { QueueingConsumer.Delivery delivery; try { delivery = consumer.nextDelivery(); } catch (InterruptedException ie) { continue; } System.out.println("Result received-" + new String(delivery.getBody())); }
My problem is when the while loop run infinite time and i want to send the fetched result to an GUI to show result.i want to know that, it is possible ,if possible then what i do?
Thanks