hi,
i have created the publisher - consumer "reply-to pattern" using rabbitmq tutorial 6 guide.
the issue , publisher and consumer works fine when the publisher sends the message first time. for second time, consumer does not do anything.
i am not sure wheather issue with replyTo queue. I am not using any exchange.
basically, by using this url , i have developed my code : https://www.rabbitmq.com/tutorials/tutorial-six-java.html
please help ...
please let me know where i can paste the code
Regards,
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can also compare and contrast your code to our runnable tutorials:The best option is to put your code in a public GitHub repositorywith some basic instructions about how to run it.
https://github.com/rabbitmq/rabbitmq-tutorials/
On Sat, Feb 24, 2018 at 12:06 AM, Irfan Sayed <irfu....@gmail.com> wrote:
hi,
i have created the publisher - consumer "reply-to pattern" using rabbitmq tutorial 6 guide.
the issue , publisher and consumer works fine when the publisher sends the message first time. for second time, consumer does not do anything.
i am not sure wheather issue with replyTo queue. I am not using any exchange.
basically, by using this url , i have developed my code : https://www.rabbitmq.com/tutorials/tutorial-six-java.html
please help ...
please let me know where i can paste the codeRegards,
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
@SpringBootApplication
public class RabbitmqUsers1Application {
private final Logger logger = LoggerFactory.getLogger(RabbitmqUsers1Application.class);
public static void main(String[] args) {
SpringApplication.run(RabbitmqUsers1Application.class, args);
}
@Bean
public ApplicationRunner runner(RabbitTemplate template) {
return args -> {
ParameterizedTypeReference<String> returnTypeString = new ParameterizedTypeReference<String>() { };
logger.info(template.convertSendAndReceiveAsType("myExchange", "rk", "foo", returnTypeString));
logger.info(template.convertSendAndReceiveAsType("myExchange", "rk", "bar", returnTypeString));
logger.info(template.convertSendAndReceiveAsType("myExchange", "rk", "baz", returnTypeString));
};
}
@RabbitListener(queues = "myQueue")
public String upCase(String in) {
return in.toUpperCase();
}
@Bean
public MessageConverter jsonConverter() {
return new Jackson2JsonMessageConverter();
}
@Bean
public DirectExchange exchange() {
return new DirectExchange("myExchange");
}
@Bean
public Queue queue() {
return new Queue("myQueue");
}
@Bean
public Binding binding() {
return BindingBuilder.bind(queue()).to(exchange()).with("rk");
}
}2018-03-03 17:39:54.599 INFO 2182 --- [ main] com.example.RabbitmqUsers1Application : FOO 2018-03-03 17:39:54.603 INFO 2182 --- [ main] com.example.RabbitmqUsers1Application : BAR 2018-03-03 17:39:54.607 INFO 2182 --- [ main] com.example.RabbitmqUsers1Application : BAZ
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.