Spring 4 CachingConnectionFactory with JMS 2.0 doesn't properly cache Producers
问题 We just upgraded to Spring 4 and JMS 2.0. We are using a CachingConnectionFactory and a JmsTemplate to publish messages and noticed that when publishing to a destination, the first attempt works and then further attempts to publish to the same destination cause the following exception: Caused by: javax.jms.IllegalStateException: The producer is closed Everything worked fine with Spring 3.2 and JMS 1.1 so I did some digging to see what the problem was and it seems the issue is in the