activemq

ActiveMQ Consumer Hangs

廉价感情. 提交于 2019-12-18 12:02:07
问题 I have an activeMQ broker using an SSL transport. I have about 10 consumers that are using the broker. I am using camel to configure my routes. Every so often, it hangs up and will not consume new messages, even if I restart the consumers, even though there are messages pending in the queues. I started trying to isolate where this was happening by stepping through my consumers one at a time trying to replicate the problem. I finally got to a consumer that I could re-create the problem on. It

configure JMX for ActiveMQ for remoting access

孤街浪徒 提交于 2019-12-18 11:31:50
问题 Anyone can give the detailed steps on how to enable JMX (can be access remotely) on a newly installed 5.5.0 version? 回答1: In your activemq.xml file, you need make sure useJmx is true on your broker element: <broker xmlns="http://activemq.org/config/1.0" brokerName="localhost" useJmx="true"> and ensure that you have a management context <managementContext> <managementContext createConnector="true" connectorPort="1099"/> </managementContext> From there it is just a matter of making sure you can

What is the difference between Apache kafka vs ActiveMQ

[亡魂溺海] 提交于 2019-12-18 10:55:34
问题 I am working on Apache Kafka . I want to know which one is better: Kafka or ActiveMQ . What is the main difference between this two technologies? I want to implement Kafka in Spring MVC. 回答1: Kafka and ActiveMQ may have some overlaps but they were originally designed for different purposes. So comparing them is just like comparing an Apple and an Orange. Kafka Kafka is a distributed streaming platform with very good horizontal scaling capability. It allows applications to process and re

What is the difference between Apache kafka vs ActiveMQ

孤街醉人 提交于 2019-12-18 10:55:00
问题 I am working on Apache Kafka . I want to know which one is better: Kafka or ActiveMQ . What is the main difference between this two technologies? I want to implement Kafka in Spring MVC. 回答1: Kafka and ActiveMQ may have some overlaps but they were originally designed for different purposes. So comparing them is just like comparing an Apple and an Orange. Kafka Kafka is a distributed streaming platform with very good horizontal scaling capability. It allows applications to process and re

ActiveMQ: How to handle broker failovers while using temporary queues

回眸只為那壹抹淺笑 提交于 2019-12-18 10:21:24
问题 On my JMS applications we use temporary queues on Producers to be able to receive replies back from Consumer applications. I am facing exactly same issue on my end as mentioned in this thread: http://activemq.2283324.n4.nabble.com/jira-Created-AMQ-3336-Temporary-Destination-errors-on-H-A-failover-in-broker-network-with-Failover-tt-td3551034.html#a3612738 Whenever I restarted an arbitrary broker in my network, I was getting many errors like this in my Consumer application log while trying to

Multithreaded JMS client ActiveMQ

こ雲淡風輕ζ 提交于 2019-12-18 09:42:25
问题 I am using the below code to create multiple JMS sessions for multiple consumers to consume messages. My problem is that the code is running in a single threaded fashion. Even if messages are present in the Queue the Second thread is unable to receive anything and just keeps polling. The first thread meanwhile finishes processing the first batch and comes back and consumes the remaining messages. Is there anything wrong with the usage here ? static { try { ActiveMQConnectionFactory

WARNING as java.io.EOFException when ActiveMQ starts

独自空忆成欢 提交于 2019-12-18 07:38:09
问题 am trying to start the ActiveMQ 5.11 and I see a WARNING as below: WARN | Transport Connection to: tcp://127.0.0.1:40890 failed: java.io.EOFException My activemq.xml is as below: <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:${JMS_PORT}" /> <transportConnector name="stomp" uri="stomp://0.0.0.0:${JMS_STOMP_PORT}"/> <transportConnector name="ssl" uri="ssl://0.0.0.0:${JMS_SSL_PORT}"/> </transportConnectors> <sslContext> <sslContext keyStore="file:${JMS_KEY_STORE}"

Need clarification on JMS vs ActiveMQ bean/resource configuration

泄露秘密 提交于 2019-12-18 06:23:09
问题 There appears to be some inconsistency on how to use JMS resources, and setting up activationConfig with proper @ActivationConfigProperty on a @MessageDriven annotation. First, here is my resource config ( glassfish-resources.xml , but translatable to other deployment descriptors). This is applied to Glassfish ( asadmin add-resources glassfish-resources.xml ) along with the ActiveMQ Resource Adapter: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD

Startup error of embedded ActiveMQ: Temporary Store limit is 51200 mb

不羁的心 提交于 2019-12-18 04:49:06
问题 I have a Spring web application which will send and listen on a standalone ActiveMQ. When I start the web application, it shows: 20:12:52.684 [localhost-startStop-1] ERROR o.a.activemq.broker.BrokerService - Temporary Store limit is 51200 mb, whilst the temporary data directory: /root/activemq-data/localhost/tmp_storage only has 29021 mb of usable space I googled and read many articles, they all refer to configure broker and systemusage to limit the temp store size. However, I do not how to

High Performance JMS Messaging

两盒软妹~` 提交于 2019-12-18 02:41:35
问题 I read slides from this year's UberConf and one of the speakers is making the argument that Spring JMS adds a performance overhead to your message queue system, however I don't see any evidence to support that in the slides. The speaker also makes the case that point-to-point is faster than the traditional "publish-subscribe" method because each message is sent only once instead of being broadcasted to every consumer. I'm wondering if any experienced Java messaging gurus can weigh-in here and