ActiveMQ embedded broker hanging when sending a Post request

Marcelo Flores

I followed the examples of the activemq site to start an embedded broker:

BrokerService broker = new BrokerService();
broker.addConnector("tcp://localhost:8161");
broker.start();

Then I perform some posts to the following URL to use the REST capabilities of ActiveMQ:

"http://localhost:8161/api/message/EventQueue?type=queue"

When I send the post using a standalone broker it all works fine, but when I use the embedded broker it hangs the process.

I am using active mq version 5.8.0

What I am missing?

Thanks

Tim Bish

You are adding a TCP connector which uses the openwire protocol but you are sending post requests as if it's an HTTP connector. You need to add an HTTP transport based connector and use that one to do your posts.

You must of course ensure that you have the classes on the classpath for http, which is in the activemq-http bundle.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Exception when restarting embedded activeMQ broker with jdbcPersistenceAdapter

From Dev

How to enable web console on ActiveMq embedded broker

From Dev

ActiveMQ: how to programmatically monitor embedded broker

From Dev

Cannot concurrently consume from ActiveMQ embedded broker

From Dev

How to enable web console on ActiveMq embedded broker

From Dev

Run embedded activemq broker on the servlet container port

From Dev

Spring Boot WebSocket with embedded ActiveMQ Broker

From Dev

Flask hangs when sending a post request to itself

From Dev

Application freezes when sending a post request to the server

From Dev

Can not get POST parameters when sending POST request with Retrofit

From Dev

How to configure embedded ActiveMQ Broker URL with Spring Boot

From Dev

How to configure embedded ActiveMQ Broker URL with Spring Boot

From Dev

Sending a POST request with PHPUnit

From Dev

Sending POST request to ESB

From Dev

Sending post request in for loop

From Dev

Sending post request with libcurl

From Dev

Sending POST request rails

From Dev

Sending POST request to ESB

From Dev

Sending POST request rails

From Dev

Error on sending POST request

From Dev

Sending post request to shapeshift

From Dev

Swift - Return data from NSURLSession when sending POST request

From Dev

the request sent by the client was syntactically incorrect when sending post requests

From Dev

org.springframework.http.converter.HttpMessageNotReadableException when sending a POST request

From Dev

Maximum call stack size exceeded when sending a post request in express

From Dev

Cloud Haskell hanging forever when sending messages to ManagedProcess

From Dev

ClassCastException when sending ActiveMQ message with Camel

From Dev

Bitronix exceptions when sending jms to activemq MuleESB

From Dev

ActiveMQ exception when sending messages from Celery

Related Related

  1. 1

    Exception when restarting embedded activeMQ broker with jdbcPersistenceAdapter

  2. 2

    How to enable web console on ActiveMq embedded broker

  3. 3

    ActiveMQ: how to programmatically monitor embedded broker

  4. 4

    Cannot concurrently consume from ActiveMQ embedded broker

  5. 5

    How to enable web console on ActiveMq embedded broker

  6. 6

    Run embedded activemq broker on the servlet container port

  7. 7

    Spring Boot WebSocket with embedded ActiveMQ Broker

  8. 8

    Flask hangs when sending a post request to itself

  9. 9

    Application freezes when sending a post request to the server

  10. 10

    Can not get POST parameters when sending POST request with Retrofit

  11. 11

    How to configure embedded ActiveMQ Broker URL with Spring Boot

  12. 12

    How to configure embedded ActiveMQ Broker URL with Spring Boot

  13. 13

    Sending a POST request with PHPUnit

  14. 14

    Sending POST request to ESB

  15. 15

    Sending post request in for loop

  16. 16

    Sending post request with libcurl

  17. 17

    Sending POST request rails

  18. 18

    Sending POST request to ESB

  19. 19

    Sending POST request rails

  20. 20

    Error on sending POST request

  21. 21

    Sending post request to shapeshift

  22. 22

    Swift - Return data from NSURLSession when sending POST request

  23. 23

    the request sent by the client was syntactically incorrect when sending post requests

  24. 24

    org.springframework.http.converter.HttpMessageNotReadableException when sending a POST request

  25. 25

    Maximum call stack size exceeded when sending a post request in express

  26. 26

    Cloud Haskell hanging forever when sending messages to ManagedProcess

  27. 27

    ClassCastException when sending ActiveMQ message with Camel

  28. 28

    Bitronix exceptions when sending jms to activemq MuleESB

  29. 29

    ActiveMQ exception when sending messages from Celery

HotTag

Archive