Simple jUnit test is not making REST login call, it works normally perfectly.

2018-08-09 Thread Michael Joyner
Hi everyone, I am just learning camel testing and my first attempt is simple. I just want to login and for fun, return the HTTP JSON response. For some reason it's not logging in. It has the POST body for the login that is sent to from this: resource:classpath:templates/loginrequest.txt Here

[Solved] Java DSL route now needs a MS SQL .to( How do I declare connection info?

2018-08-09 Thread John F. Berry
Sorry to have missed it.. but I simply needed to add this dependency to the POM:         com.microsoft.sqlserver     mssql-jdbc     7.0.0.jre10     Thank you all!! On Wednesday, August 1, 2018, 4:39:18 PM EDT, Quinn Stevenson wrote: The driver needs to be in the class path so the B

Spring Boot Testing & @DirtiesContext

2018-08-09 Thread James Green
I have an itch to scratch. Why does my test class require @DirtiesContext to avoid a stack trace telling me that ActiveMQ was never started and so it cannot be stopped after my test completes? Context: @RunWith(CamelSpringBootRunner.class) @SpringBootTest @MockEndpoints @DirtiesContext(classMode

How to use ActiveMQ Artemis through HTTP tunnel

2018-08-09 Thread Simon Martinelli, 72 Services LLC
Hi, I configured a Netty http acceptor in my ActiveMQ Artemis Broker. According to the Artemis examples I must add ?httpEnabled=true to enable HTTP. I'm using Spring Boot and create a ActiveMQComponent like this: @Bean public ActiveMQComponent activemqAmazon() { ActiveMQCompone