🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

How to specify a specific JCSMP or JMS version when using the Solace Spring Boot Starters

ngdavid1013
ngdavid1013 Member Posts: 1

Sometimes, you may have a particular JMS load that you want to use in Spring Boot. For example, when you need to duplicate an issue experienced by a client. This is the procedure:
Edit the POM file with the following two sections:
1) In the dependencies section for the artifact solace-jms-spring-boot-starter, exclude the sol-jms artifact. This causes the solace-jms-spring-boot-starter not to load the sol-jms artifact.
2) Next add a new dependency for your version of sol-jms.
The following is a section of the POM file after modifications:

    <dependency>
        <groupId>com.solace.spring.boot</groupId>
        <artifactId>solace-jms-spring-boot-starter</artifactId>
        <version>3.2.0</version>
        <exclusions>                    <------------------------------------- New (1)
            <exclusion>
                <groupId>com.solacesystems</groupId>
                <artifactId>sol-jms</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>                        <--------------------------------- New (2)
        <groupId>com.solacesystems</groupId>
        <artifactId>sol-jms</artifactId>
        <version>my-special-version</version>
    </dependency>​

Comments