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

SB caching

Offen
#46 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Also ASA
Vorherrschende Sprache
Java
Sterne
11
Forks
176
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.