markfisher/spring-integration — comment on commit 0a7426287fb6c2f560f6f77c9d0d624a01eabab7
File: spring-integration-jms/src/main/java/org/springframework/integration/jms/JmsOutboundGateway.java line 617
By olegz:

Since we are calling the same method and returning Session should we bother casting it to QueueConnection in this case? What is wrong with just:

return connection.createSession(false, Session.AUTO_ACKNOWLEDGE);