Azure-Samples / java-microservices-aks-lab

This lab walks you through the creation of a Java microservices application on AKS integrated with multiple Azure services
MIT License
10 stars 159 forks source link

SB caching #46

Open vermegi opened 1 year ago

vermegi commented 1 year ago

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: