@ -66,6 +66,8 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
@@ -66,6 +66,8 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
privatebooleanconnectLazily=false;
privatebooleanrecoverOnException=true;
privateintconcurrentConsumers=1;
@Nullable
@ -94,6 +96,21 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
@@ -94,6 +96,21 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
@ -227,8 +244,11 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
@@ -227,8 +244,11 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
@ -236,21 +256,23 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
@@ -236,21 +256,23 @@ public class SimpleMessageListenerContainer extends AbstractMessageListenerConta
invokeExceptionListener(ex);
// Now try to recover the shared Connection and all consumers...
if(logger.isDebugEnabled()){
logger.debug("Trying to recover from JMS Connection exception: "+ex);
}
try{
synchronized(this.consumersMonitor){
this.sessions=null;
this.consumers=null;
if(this.recoverOnException){
if(logger.isDebugEnabled()){
logger.debug("Trying to recover from JMS Connection exception: "+ex);
@ -202,8 +202,8 @@ public class MultipartHttpMessageWriter extends LoggingCodecSupport
@@ -202,8 +202,8 @@ public class MultipartHttpMessageWriter extends LoggingCodecSupport
@ -280,8 +280,8 @@ public class FormHttpMessageConverter implements HttpMessageConverter<MultiValue
@@ -280,8 +280,8 @@ public class FormHttpMessageConverter implements HttpMessageConverter<MultiValue