Home > Back-end >  The rabbitmq how to dynamically create the queue to monitor?
The rabbitmq how to dynamically create the queue to monitor?

Time:09-24

 ConnectionFactory ConnectionFactory.=RabbitMqConfig ConnectionFactory (); 
SimpleMessageListenerContainer container=new SimpleMessageListenerContainer (connectionFactory);
Container. AddQueueNames (" aa ");
Container. SetMessageListener (handleService);

According to the principle that have been added, listening class, try to send every small modules such as no problem, so make sure there is no add to monitor success, have bosses to save it
  • Related