spring-framework / org.springframework.jms.support / JmsUtils / closeMessageProducer

closeMessageProducer

open static fun closeMessageProducer(@Nullable producer: MessageProducer): Unit

Close the given JMS MessageProducer and ignore any thrown exception. This is useful for typical finally blocks in manual JMS code.

Parameters

producer - the JMS MessageProducer to close (may be null)