[AMQ-8026] Upgrade to Spring 5.3.7

This commit is contained in:
jbonofre 2021-05-25 07:45:54 +02:00
parent fc80b86ac6
commit db74868ee4
5 changed files with 11 additions and 6 deletions

View File

@ -22,7 +22,7 @@
<!-- Bundles needed if only client will be deployed in the container -->
<feature name="activemq-client" description="ActiveMQ client libraries" version="${project.version}">
<feature version="[4,5)">spring</feature>
<feature version="[5,6)">spring</feature>
<feature>aries-blueprint</feature>
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>

View File

@ -155,6 +155,7 @@
sun.misc*;resolution:=optional,
sun.nio*;resolution:=optional,
sun.rmi*;resolution:=optional,
javax.xml.bind*;version="[2,3)",
javax.jmdns*;resolution:=optional,
javax.resource*;resolution:=optional,
javax.servlet*;resolution:=optional,

View File

@ -22,10 +22,11 @@ import org.slf4j.LoggerFactory;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.annotation.Commit;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import javax.jms.*;
@ -33,7 +34,8 @@ import javax.jms.*;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/spring.xml"})
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = false)
@Transactional
@Commit
public class ListenerTest {
private static final Logger LOG = LoggerFactory.getLogger(ListenerTest.class);

View File

@ -24,13 +24,14 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.jms.core.MessageCreator;
import org.springframework.test.annotation.Commit;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionException;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;
import org.springframework.transaction.support.TransactionTemplate;
@ -43,7 +44,8 @@ import java.util.Arrays;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/xa.xml"})
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = false)
@Transactional
@Commit
public class ParallelXATransactionTest {
private static final Logger LOG = LoggerFactory.getLogger(ParallelXATransactionTest.class);

View File

@ -100,7 +100,7 @@
<shiro-version>1.7.1</shiro-version>
<slf4j-version>1.7.30</slf4j-version>
<snappy-version>1.1.2</snappy-version>
<spring-version>4.3.30.RELEASE</spring-version>
<spring-version>5.3.7</spring-version>
<taglibs-version>1.2.5</taglibs-version>
<velocity-version>2.3</velocity-version>
<xalan-version>2.7.2</xalan-version>