activemq

ActiveMQ: One Pending Message but Queue is empty

两盒软妹~` 提交于 2019-12-24 02:49:46
问题 I have a strange problem with ActiveMQ. I have a queue that seems to have a pending message, but when I open the queue, there is no message. What is wrong here? Is there really a message pending? How can I bring the message back or at least see the content? Screenshot of the pending message: Screenshot when opening the queue, which is empty: EDIT: Just found these two bugs of ActiveMQ 5.6.0. Can this be the source of that problem? Incorrect reporting of pendingQueueSize of durable subs after

ActiveMQ JMS XA Atomikos - Transaction not started error

廉价感情. 提交于 2019-12-24 02:12:40
问题 The situation is we want to use XA transactions to coordinate activity between ActiveMQ and Hibernate (Sql Server 2008). We are using: Spring 3.0.5 Hibernate 3.6.2 ActiveMQ 5.5.0 Atomikos 3.7 We are seeing the following errors getting generated in the log file related to the transaction has not been started. These are always related to JMS. Transaction '[ID]' has not been started. These are getting generated into the logs all the time. The issue is more complicated in that we have 3 web

Read-only web console access in ActiveMQ

懵懂的女人 提交于 2019-12-23 21:29:38
问题 I'm using ActiveMQ 5.10 and would like to create a user that has read-only access through the web console. Red Hat published this article, mentioning that it's not really read only due to a bug in ActiveMQ. According to the bug report AMQ-4567, the bug is fixed as of ActiveMQ 5.9. However, I'm not seeing it work appropriately. I have tried a number of different configurations, with the most recent being two separate JAAS implementations, one for Jetty and one for ActiveMQ. The relevant

How to disable SSLv3 protocol in Apache ActiveMQ?

淺唱寂寞╮ 提交于 2019-12-23 21:23:50
问题 I want to disable SSLv3 protocol in Apache ActiveMQ. Can not find relevant information here: http://activemq.apache.org/ssl-transport-reference.html The link above only shows how to configure CipherSuites 回答1: There is an enabledProtocols option you can use on the transport connector. You can't exclude, but you can choose valid protocols. transport.enabledProtocols=<comma separated list of SSL/TLS protocols> So, a TLS only "default" transport connector should look like this:

ActiveMQ Override scheduled message

ぐ巨炮叔叔 提交于 2019-12-23 20:25:46
问题 I am trying to implement delayed queue with overriding of messages using Active MQ. Each message is scheduled to be delivered with delay of x (say 60 seconds) In between if same message is received again it should override previous message. So even if I receive 10 messages say in x seconds. Only one message should be processed. Is there clean way to accomplish this? 回答1: The question has two parts that need to be addressed separately: Can a message be delayed in ActiveMQ? Yes - see Delay and

ActiveMQ: Get list of connections through JMX?

十年热恋 提交于 2019-12-23 18:43:11
问题 how do I get the list of the connections to the OpenWire connector of ActiveMQ? JConsole is able to list the connections, but I don't see which "view" I can use to get the list: Example ObjectName of a connection: org.apache.activemq:BrokerName=localhost,Type=Connection,ConnectorName=openwire,Connection=toto I tried "ConnectorViewMBean" but the operations on it don't allow me to list the connections: ObjectName name = new ObjectName("org.apache.activemq:BrokerName=localhost,Type=Connection

ActiveMQ CLIENT on Java 1.4

半世苍凉 提交于 2019-12-23 18:24:51
问题 We are using Active MQ in the most current version 5.6.0. Now we have the problem that a new client has to be connected, unfortunately this client is developed with IBM JDK 1.4. Adding ActiveMQ to the application lead to the following error: UNEXPECTED ERROR OCCURRED: org/apache/activemq/ActiveMQConnectionFactory (Unsupported major.minor version 50.0) STACK TRACE: java.lang.UnsupportedClassVersionError: org/apache/activemq/ActiveMQConnectionFactory (Unsupported major.minor version 50.0) We

How can I recognize ActiveMQ disconnect using NMS and C#

 ̄綄美尐妖づ 提交于 2019-12-23 13:02:13
问题 I have a C# publisher and subscriber that talk to each other using ActiveMQ and NMS. Everything works fine, except I have no way to know when ActiveMQ goes down. This is particularly bad for the consumer. They stop getting data, but aside from the fact that data stops showing up, no errors or events are raised. Is there a way using NMS(particulary Apache.NMS.IConnection or the Apache.NMS.ISession objects) I downloaded the implementation that I'm using from Spring, but I'm not using any

How to know if a listener gets the message in JMS?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 11:57:05
问题 I'm using Spring JMS and ActiveMQ to send message from one sender to multiple listeners asynchronously. All listeners subscribe to an ActiveMQ Topic so that the message can be delivered to them. I want to know if a particular listener gets the message from the sender. Is there a way to achieve this? Edit: Added the JMS sender and listener classes This is my message sender class: public class CustomerStatusSender { private JmsTemplate jmsTemplate; private Topic topic; public void

activemq

妖精的绣舞 提交于 2019-12-23 05:39:49
3.1下载、安装JDK1.6 从官方网站下载JDK1.6以上版本,如jdk-6u4-windows-i586-p.exe。双击执行安装过程,安装到诸如C:\Program Files\Java\jdk1.6.0_10的路径下。 3.2配置Java环境 在桌面上找到我的电脑,右击鼠标选择->属性,->高级->系统变量在系统变量里点击新建,在变量名填写:JAVA_HOME,在变量值填写诸如:C:\ProgramFiles\Java\jdk1.6.0_10的JDK安装路径(部署需要jdk1.6及以上)。 然后配置path。在环境变量里找到path。点击编辑。在变量值里添加“%JAVA_HOME%\bin;。注意新添加的字串和已有字串使用半角分号;分割。 最后配置classpath。其值为 .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar (注意这里需要增加半角句号.来表示当前路径。) 3.3验证Java环境 以上三个变量设置完毕,则按“确定”直至属性窗口消失。验证安装是否成功:打开“开始”菜单->“运行”,输入入“cmd”,进入dos系统界面。然后输入“java -version”,回车执行。如果安装成功。系统会显示诸如java version jdk"1.6.0"的界面 3.4安装ActiveMQ服务器