activemq

ActiveMQ 5.8: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

天大地大妈咪最大 提交于 2019-12-13 01:26:27
问题 I am trying to setup ActiveMQ persitenceAdapter to an Oracle 11g (11.2) database. When starting ActiveMQ through the Tanuki wrapper I am getting the Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' exception. I am searching the net for hours without finding any relevant answer. My classpath is correct. I have the feeling that the Tanuki wrapper is not taking my classpath customization into account. Could you please tell me if you see anything wrong or provide me with a working

Rjms & ActiveMQ: exception when initializing logger

让人想犯罪 __ 提交于 2019-12-13 01:06:40
问题 I installed R 's Rjms package as I want to send messages to an ActiveMQ message queue already set up (called test ) for me. As Rjms is not on CRAN, I installed it from github using the directions in ActiveMQ package for R. However, I noted two things. When installing Rjmsjars , I received a warning saying No man pages found in package ‘Rjmsjars’ . I think this is likely unrelated, but I wanted to include this just in case. library(devtools) install_github("cran/Rjmsjars") install_github(

How to use log4j2 JMSAppender with ActiveMQ

时光毁灭记忆、已成空白 提交于 2019-12-13 00:53:52
问题 I am struggling to write a simple POC program that logs messages to a Queue. All tutorials and Q&As I find (here and here) use log4j version 1.2 and they put messages onto a Topic and not onto a queue. My requirement is to log to a queue. I followed the documentation mentioned on the official site, but was not able to get it working. I have log4j2 and ActiveMQ JARs on my classpath, I have created the queue "logQueue", I am able to see the queue in the ActiveMQ web console and when I try

Notify ActiveMQ producer if consumer on the destination is down

百般思念 提交于 2019-12-12 19:09:02
问题 I am using ActiveMQ messaging broker and I have a requirement where the producer application would want to know if the consumer application consuming on the particular destination is up or not? How can I achieve this? Thanks! 回答1: You should checkout Advisory messages. It's a topic you can subscribe to if you want updates on such events. Specifically the topic: ActiveMQ.Advisory.NoConsumer.Queue should be of interest. You need to enable it broker side though using the destination policy

Camel The application attempted to use a JMS session after it had closed the session

拜拜、爱过 提交于 2019-12-12 17:08:57
问题 I am new to camel and I am attempting to write an app that bridges Websphere MQ and Active MQ on JBoss EAP 7. The app deploys successfully works, I can drop messages on the Websphere queue, and it gets picked up by Active MQ. However I see error messages in the log showing it is attempting to use a connection after it is open. 15:48:57,814 ERROR [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (Camel (camel) thread #1 - JmsConsumer[I0_TEST]) IJ000315: Pool

How to set queue max length for activemq

房东的猫 提交于 2019-12-12 16:18:35
问题 I'm wondering if I can configure a queue's max length on activemq, so that when the queue's length touch the limit, the enqueue operation will failed or throw exceptions. is anybody know about this question? any help will be very appreciated. Thanks a lot. 回答1: Take a look at Producer Flow Control http://activemq.apache.org/producer-flow-control.html It limits your queue on the amount of memory the queue takes so its not a numbers of messages approach but a memory sizing approach. You can

Creating JMS Queues at runtime [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 16:14:15
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I am working on an application where the app user can create / delete queues . Also , he would be able to move a message from 1 queue to another, delete a message , rearrange the messages in the queue based on some filter. One possible design is to use activemq for queues and

ActiveMQ Jolokia API How can I get the full Message Body

自古美人都是妖i 提交于 2019-12-12 15:10:00
问题 I want to write my own ActiveMQ Monitor. I can get Queues and Messages from a Queue. But the Message Body (content) is shorted. How can I get the full Message Body? This I have tested: Get: Always errors http://localhost:8161/api/jolokia/exec/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=errors/browseMessages(java.lang.String)/JMSMessageID%3D%27ID%3AW530-62766-1419849619826-0%3A15%3A1%3A1%3A1%27 http://localhost:8161/api/jolokia/exec/org.apache

how to read only specific queue messages based on message header property

北城以北 提交于 2019-12-12 14:04:27
问题 I have a list of messages in activemq queue. each message has a custom header property with value. How I should be able to access only those messages whose custom header property value = 123.? I am using something like below to pick a message from queue. How to pick all messages which or a single message which has customHeaderProperty =123.? ConsumerTemplate consumerTemplate = camelContext.createConsumerTemplate(); Exchange ex = consumerTemplate.receive("activemq:queueName",10000); String

linux下activemq安装与配置

拥有回忆 提交于 2019-12-12 13:26:57
一、下载:apache-activemq-5.14.0-bin.tar.gz http://activemq.apache.org/activemq-5140-release.html 二、安装activemq 1、gz文件拷贝到/usr/local/src目录 2、解压启动 tar -zxvf apache-activemq-5.14.0-bin.tar.gz cd apache-activemq-5.14.0 cd bin ./activemq start netstat -anp|grep 61616 关闭 ./activemq start 三、开启防火墙端口 1、如果使用了云服务器需要先开启8161(web管理页面端口)、61616(activemq服务监控端口) 两个端口 2、打开linux防火墙端口 /sbin/iptables -I INPUT -p tcp --dport 8161 -j ACCEPT&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables status /sbin/iptables -I INPUT -p tcp --dport 61616 -j ACCEPT&&/etc/init.d/iptables save&&service iptables