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


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03569.html on line 107
Call Stack
#TimeMemoryFunctionLocation
10.0007363064{main}( ).../msg03569.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03569.html on line 107
Call Stack
#TimeMemoryFunctionLocation
10.0007363064{main}( ).../msg03569.html:0