Merge branch '6.1.x'

This commit is contained in:
Sébastien Deleuze 2024-03-25 11:28:43 +01:00
commit 88e26a9570
3 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import org.springframework.beans.PropertyValues;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.lang.Nullable;
import org.springframework.util.StringUtils;
/**
@ -56,6 +57,7 @@ class JmsListenerContainerParser extends AbstractListenerContainerParser {
@Override
@Nullable
protected RootBeanDefinition createContainerFactory(String factoryId, Element containerEle, ParserContext parserContext,
PropertyValues commonContainerProperties, PropertyValues specificContainerProperties) {

View File

@ -240,6 +240,7 @@ public class CachingConnectionFactory extends SingleConnectionFactory {
* Checks for a cached Session for the given mode.
*/
@Override
@Nullable
protected Session getSession(Connection con, Integer mode) throws JMSException {
if (!this.active) {
return null;

View File

@ -244,6 +244,7 @@ public abstract class JmsUtils {
* @return the descriptive message String
* @see jakarta.jms.JMSException#getLinkedException()
*/
@Nullable
public static String buildExceptionMessage(JMSException ex) {
String message = ex.getMessage();
Exception linkedEx = ex.getLinkedException();