We have an Spring boot application which uses the apache camel JMS adapter
to access webmethods JMS. This is working fine without any problems.

After migrating to Apache camel 2.18.x we have problems with our JMS
integration tests.
Apache camel drops the ssl certificate to access the JMS server which leads
to the following exception:

    org.springframework.jms.UncategorizedJmsException:
    Uncategorized exception occurred during JMS processing;
    nested exception is javax.jms.JMSException:
    [BRM.10.9003] JMS: Unable to connect to any Brokers in the cluster:
    [user]@[server]:[port] -
    [BRM.10.5061] JMS: SSL certificate "[path to file location]":
    bad certificate.;[user]@[server]:[port]

**This only happens when performing the tests on a server where the
application has been deployed to (standalone tomcat). It does not happen
when the tests are performed within the IDE (embedded tomcat).**

We use the following test configuration:

    @RunWith(CamelSpringBootRunner.class)
    @SpringBootTest(classes = Application.class)

The Application class :

    @SpringBootApplication(exclude = { JmsAutoConfiguration.class })
    public class Application extends SpringBootServletInitializer {

        @Override
        protected SpringApplicationBuilder
configure(SpringApplicationBuilder application) {
            return application.sources(Application.class);
        }

        public static void main(String[] args) {
            SpringApplication.run(Application.class, args);
        }
    }

Environment:

 - Spring Athens SR5 (Spring boot 1.4.6)
 - Apache Camel 2.19.0 (initially tried 2.18.x)

Reply via email to