activemq

Which embedded messaging system -> ActiveMQ or HornetQ

天大地大妈咪最大 提交于 2019-12-03 04:08:47
问题 I would appreciate some general pointers and opinions regarding which of the two messaging systems is easier to manage has less gotchas or magic stuff one needs to know and avoid has less overal dependencies is simple to work with. 回答1: easier to manage hornetQ has a clear API for management and it's very easy to use. has less gotchas or magic stuff one needs to know and avoid hornetQ was made for the embedded case. It is very, very easy to integrate it in your code. As a matter of fact you

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

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 do this in Spring configuration. Below is my

SunTlsRsaPremasterSecret KeyGenerator not available

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I encountered an error when my application tries to load a RSA Algorithm provider class from JAVA. The exception stack is as follow: javax.jms.JMSException: RSA premaster secret error at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1255) at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1350) at org.apache.activemq.ActiveMQConnection.setClientID(ActiveMQConnection.java:388) at com

ActiveMQ vs Apollo vs Kafka

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I don't have any previous experience with *MQs and I'm looking to build knowledge on JMS and message queues in general. That way, I wonder whether I should start with ActiveMQ or just "ignore" it altogether and start by teaching myself Apollo. Is Apollo as feature-complete as ActiveMQ? Does it implement JMS 2.0 (I see that ActiveMQ got stuck with 1.1)? Will I be missing something really important? Also, how does Kafka compare to these two solutions? 回答1: Apache ActiveMQ is a great workhorse full of features and nice stuff. It's not the

RESTful v/s MQ. Differences and other key features apart from Guaranteed Delivery

瘦欲@ 提交于 2019-12-03 02:28:40
Ok..So I have started studying about MQ and its purpose/usecase etc... My existing application (Web made using JSP etc..) uses RestFUL interface to communicate with a remote server and to post/receive data from the server. We often have to deal with the connectivity of the remote server.The synchronization problem is always there.. Message sent from our end.But Remote server went down. Or vice versa. I came across the MQ thing and found it to be reliable when delivering and receiving messages from remote server is concerned. But again, using REST I think the entire need for MQ appears to be a

Unable to shutdown embedded activeMQ service using the built in BrokerService.stop call

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been using an embedded activeMQ server configuration (configuration is very similar to the examples that illustrate the concept of an embedded activeMQ server/listener). Aas part of the application, I have a monitoring thread that monitors a directory. Instead of having to kill the process to shutdown the activeMQ server, I introduced a check for a "STOP" file and if the file exists, the server would shutdown. The shutdown I am trying to accomplish by calling the stop function on the broker. (broker.stop() ) This seems to shutdown the

Signal a rollback from a JMS MessageListener

孤人 提交于 2019-12-03 02:16:06
I've been working with JMS and ActiveMQ. Everything is working wonders. I am not using spring, nor can I. The interface javax.jms.MessageListener has only one method, onMessage . From within a implementation, there is a chance an exception will be thrown. If in fact an exception gets thrown, then I say the message wasn't properly processed and needs to be re-tried. So, I need ActiveMQ to wait for a little while and then, retry. i.e. I need the thrown exception to rollback the JMS transaction. How can I accomplish such a behaviour? Maybe there is some configuration in ActiveMQ I wasn't able to

Activemq will not start on my Ubuntu VM

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run activemq on my ubuntu virtual machine but have constantly been running into issues getting it to start up. I've tried downloading the binary and source with no luck. Currently I have downloaded the source, run "mvn clean install -Dmaven.test.skip=true" and mvn reported successful installation. I then hunted around in my .m2 folder found apache-activemq-5.5.1-bin.tar.gz and extracted it to my home/USERNAME dir and attempted to run "bash bin/activemq start" only to receive the following error. INFO: Loading '/etc/default

Accessing Apache ActiveMQ via JMX throws Exception

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using a fresh ActiveMQ 5.8.0 installation, where I have a message in a queue called 'testing'. I also replaced the ACTIVEMQ_SUNJMX line in bin/activemq to enable JMX: ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" Then I query JMX via the following code: try { JMXConnector connector = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi")); connector.connect(); MBeanServerConnection

activemq User is not authorized to create: topic://ActiveMQ.Advisory.Connection

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use authorization in activemq, but stuck for some time now. Here is my java code, everything works fine when I remove the authorization plugin. I am trying to create a topic named "room2". Context jndiContext = new InitialContext(); ConnectionFactory connectionFactory; connectionFactory = (ConnectionFactory) jndiContext .lookup("ConnectionFactory"); connection = connectionFactory.createConnection("system", "manager"); session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Topic t = session.createTopic("room2");