Azure-Samples / Azure-Samples/java-microservices-aks-lab

SB caching

Aperta
#46 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Also ASA
Lingua principale
Java
Stelle
11
Fork
176
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Service Bus connection caching: people who wait 10+ minutes lose the ability to send messages in Lab 5.
Workaround (from a learner):
Add the cache disability to the code. It works better this way. In PetClinicVisitRequestSender you add an import org.springframework.jms.connection.CachingConnectionFactory; and then :
CachingConnectionFactory connectionFactory = (CachingConnectionFactory) jmsTemplate.getConnectionFactory();
connectionFactory.setCacheProducers(false);
Workaround links:
- https://stackoverflow.com/questions/64917959/azure-service-bus-javax-jms-illegalstateexception-the-messageproducer-was-close
- https://stackoverflow.com/questions/59248234/azure-service-bus-amqp-idle-timeout-condition-amqplinkdetach-forced

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.