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

closeMessageConsumer

open static fun closeMessageConsumer(@Nullable consumer: MessageConsumer): Unit

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

Parameters

consumer - the JMS MessageConsumer to close (may be null)