git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use ActiveMQ Artemis through HTTP tunnel


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() {

        ActiveMQComponent activeMQComponent = new ActiveMQComponent();

        activeMQComponent.setBrokerURL("tcp://amazonaws.com:8080?httpEnabled=true");

        return activeMQComponent;

}



But then I get:

javax.jms.JMSException: Could not create Transport. Reason: java.lang.IllegalArgumentException: Invalid connect parameters: {httpEnabled=true}



Any help is appreciated.



Thanks, Simon