activemq

Java JMS mix messaging implementations

帅比萌擦擦* 提交于 2019-12-13 08:09:34
问题 Is it possible to use java messaging with mixed implementations. E.g.: Is it possible to connect an ActiveMQ client directly to an MQSeries(IBM) server to read/write messages from/to the message queue? 回答1: JMS is an API specification, not a wire format specification. JMS describes the signature of APIs. It does not say how the internals should be implemented. Hence JMS client library implementations are Messaging Provider specific. A IBM MQ JMS Client knows how (i.e wire format) to

ActiveMQ: One Pending Message but Queue is empty - ActiveMQ 5.12.0

泪湿孤枕 提交于 2019-12-13 07:40:49
问题 I have the same issue as described here: ActiveMQ: One Pending Message but Queue is empty. Active MQ shows pending messages for the queue but when I click it it's empty. Further clients: with hawtio - same behaviour my java consumer does not consume anything after restart, continued to consume We persist our messages not in default kaha db but in Oracle DB. I could see the pending messages in database in table ACTIVEMQ_MSGS. After restart of activeMQ all clients worked as expected. In the

Throttling based on time interval

主宰稳场 提交于 2019-12-13 07:18:55
问题 I have 4 queues in ActiveMq and messages from each queue should be sent out to external service, for picking up the messages from queue i am using Apache Camel and i am throttling the messages. But my problem here is for different queues i have different social hours, For E.g. Queue 1 messages should be sent only between 6AM to 5PM, Queue 2 messages should be sent only between 10AM to 10PM like that. So i want to know can we handle this using Apache camel throttling. Or please suggest me some

How to detect loss of JMS Topic connection

江枫思渺然 提交于 2019-12-13 06:27:58
问题 We have swing GUI clients that are connecting to a server process. The clients 'call' services on the server using jms:queue 'from' endpoints defined in Camel routes, and using ActiveMQ as the underlying JMS broker. However, the client also offers a Camel jms:topic endpoint for the server to broadcast messages back to the client. Unfortunately, it looks like the topic connection is getting lost somehow, and although the client can still 'call' the services on the server, the server cannot

Credentials for ActiveMQ/Jolokia/HawtIO through Java

放肆的年华 提交于 2019-12-13 06:14:16
问题 I know the default password for 5.9.0's HawtIO/Jolokia is set in the \conf\ folder and is admin/admin system/manager etc However, none of those password are working when trying to execute the restful commands through Java: CredentialsProvider credsProvider = new BasicCredentialsProvider(); credsProvider.setCredentials(new AuthScope(null, -80), new UsernamePasswordCredentials("admin", "admin")); CloseableHttpClient httpclient0 = HttpClients.custom().setDefaultCredentialsProvider(credsProvider)

JMS / ActiveMQ: Sending an object with objects as class members

狂风中的少年 提交于 2019-12-13 05:50:34
问题 I'm using ActiveMQ (with Spring) for sending messages to remote OSGi-Container. This works very fine, but there is one issue. I got two classes implementing Serializable. One class is the class member of the other class, like this: public class Member implements Serializble { private int someValue; private static final long serialVersionUID = -4329617004242031635L; ... } public class Parent implements Serializable { private static final long serialVersionUID = -667242031635L; private double

ActiveMQ stops sending messages to Queue Consumer in case of consumer not acknowledging messages

梦想与她 提交于 2019-12-13 05:48:13
问题 We have a use case wherein we create just one consumer to process messages in the Queue. Message processor accumulates certain number of messages before acknowledging. Receiving messages in Asynchronous way and using Transacted session. Size of message is very small. Active MQ stops sending further messages to sole consumer after certain number of messages and waits for acknowledgement. We have tried solutions like consumer.prefetchSize , consumer.maximumPendingMessageLimit ; but nothing is

Jmeter - which JARs are required for ActiveMQ?

北慕城南 提交于 2019-12-13 05:17:24
问题 I'm going to benchmark ActiveMQ using Jmeter. According to this document, I only need to add the activemq-all.jar to the lib/ directory: $ ll /usr/share/jmeter/lib/ total 12812 drwxr-xr-x 3 root root 4096 Oct 12 16:55 ./ drwxr-xr-x 6 root root 4096 Oct 12 14:11 ../ -rw-r--r-- 1 root root 3800187 Aug 14 2010 activemq-all-5.8.0.jar -rw-r--r-- 1 root root 29071 Sep 26 2010 bshclient.jar drwxr-xr-x 2 root root 4096 Oct 12 14:11 ext/ -rw-r--r-- 1 root root 116075 Sep 26 2010 jorphan.jar then start

Load balancing MessageQ (ActiveMQ)

邮差的信 提交于 2019-12-13 04:44:14
问题 This is my scenario.. 1) A REST based web service (Say X) takes in requests and puts it into ActiveQ 2) There is a listener on the other side of the Q that will read and process the message. This is async I decided to go with ActiveMQ. But trying to find a solution where I can Q and the Q listeners scalable. 1) I have many instances of X running. Hence there are multiple prodders to the Q. 2) Ordering is important to me. 3) Since my REST service is session less, I don't have a way to tag a

Spring, jms lost context

大憨熊 提交于 2019-12-13 04:42:20
问题 i'm writing webapp that uses few workers. I decide to use JMS ActiveMQ to communication between them. My problem is that when i change workers configuration to java (when config was in xml i couldn't run jar) i have problem when message returns to webapp : 2013-07-19 21:23:23.653 [org.springframework.jms.listener.DefaultMessageListenerContainer#4-3] WARN o.s.j.l.DefaultMessageListenerContainer - Execution of JMS message listener failed, and no ErrorHandler has been set. java.lang