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

closeConnection

open static fun closeConnection(@Nullable con: Connection): Unit

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

Parameters

con - the JMS Connection to close (may be null)

open static fun closeConnection(@Nullable con: Connection, stop: Boolean): Unit

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

Parameters

con - the JMS Connection to close (may be null)

stop - whether to call stop() before closing