activemq

Android application connected to an ActiveMQ server

时间秒杀一切 提交于 2020-01-05 08:22:38
问题 I wanted to know if it is possible to create an Android Application that sends and receives messages through the ActiveMQ server? if its been done can you show me some examples perhaps? Thank you for taking the time to read 回答1: you can use Stomp Java lib to consume from queues https://github.com/fusesource/stompjms here an example of android app that talk to activemq https://github.com/jsherman1/android-mqtt-demo https://dzone.com/articles/android-mqtt-activemq http://activemq.apache.org

Android application connected to an ActiveMQ server

ぐ巨炮叔叔 提交于 2020-01-05 08:22:08
问题 I wanted to know if it is possible to create an Android Application that sends and receives messages through the ActiveMQ server? if its been done can you show me some examples perhaps? Thank you for taking the time to read 回答1: you can use Stomp Java lib to consume from queues https://github.com/fusesource/stompjms here an example of android app that talk to activemq https://github.com/jsherman1/android-mqtt-demo https://dzone.com/articles/android-mqtt-activemq http://activemq.apache.org

ActiveMQ embedded broker topic-to-queue bridge with XML config

隐身守侯 提交于 2020-01-05 07:49:06
问题 My Goal + Progress I'm interested in using ActiveMQ to publish a message to a topic and have it bridge to multiple queues. I have managed to achieve this with the command-line broker by providing an xml-config containing a composite topic: <destinationInterceptors> <virtualDestinationInterceptor> <virtualDestinations> <compositeTopic name="LOCAL.EC.T"> <forwardTo> <queue physicalName="LOCAL.EC.Q.1" /> <queue physicalName="LOCAL.EC.Q.2" /> </forwardTo> </compositeTopic> </virtualDestinations>

Effect of ExchangePattern.InOnly on mq endpoint

拈花ヽ惹草 提交于 2020-01-05 06:56:08
问题 I have my route defined as from("jetty:http://0.0.0.0:xxxx/abc").to("activemq:queue:queue1").setExchangePattern(ExchangePattern.InOnly); I understand that this route drops a meessage to the broker and does not wait for the message consumer to consume it. I want to understand the impact of ExchangePattern.InOnly with respect to broker accepting message. I have persistence enabled on the broker. Does the above route ensure that it is persisted before the exchange is completed. 回答1: You need to

Message redistribution on ArtemisMQ 2.x does not work

感情迁移 提交于 2020-01-05 05:42:26
问题 I would like to enable message redistribution on my 2-nodes cluster with static hosts. But it does not seem to work. 1) I have 10 producers that write to the queue "MyTestQueue" on node 1 (but no consumers). 2) I have 1 consumer on node 2 (but no producers) that consumes messages from node 2. I expect that node 1 will redistribute the messages to node 2 where the consumer exists, but it does not. The message count on node 1 is still equal the amount of messages that was sent to node 1. I have

Cannot convert object of type to JMS message. Supported message payloads are: String, byte array, Map<String,?>, Serializable object

怎甘沉沦 提交于 2020-01-05 05:35:09
问题 I am developing Spring + ActiveMQ + JMS example. In this example, I am facing the below error: I tried with Many options but not working at all. I am looking to implement the following: 1) Queue should be keep reading messages (either using the Converter or listener) 2) Based on the InstructionMessage type I have to take decision on where to send it or not. The code uploaded at : https://github.com/test512/spring-mvc-jms-tutorials Sending person InstructionMessage [instructionType=10,

How to continuously read JMS Messages in a thread and achnowledge them based on their JMSMessageID in another thread?

Deadly 提交于 2020-01-05 04:13:28
问题 I've written a Continuous JMS Message reveiver : Here, I'm using CLIENT_ACKNOWLEDGE because I don't want this thread to acknowledge the messages. (...) connection.start(); session = connection.createQueueSession(true, Session.CLIENT_ACKNOWLEDGE); queue = session.createQueue(QueueId); receiver = session.createReceiver(queue); While (true) { message = receiver.receive(1000); if ( message != null ) { // NB : I can only pass Strings to the other thread sendMessageToOtherThread( message.getText()

ActiveMQ get queue size without using JMX, JMS

落花浮王杯 提交于 2020-01-04 17:02:04
问题 I need a way for getting queue size in ActiveMQ without using JMX or Iterate all queue using JMS. Is there any solution for getting queue size using ActiveMQ API. 回答1: There is no API in JMS for querying the broker for stats, that goes against the concept of decoupling the client from each other and the intermediate broker. ActiveMQ does offer a few things that you can use, JMX being the most powerful way to get what you are after but if you don't want to go directly to the JMX API you can

Can a SqlServer trigger push to ActiveMQ

≡放荡痞女 提交于 2020-01-04 16:58:50
问题 can anyone tell me if it is possible to push data from a SqlServer trigger directly to ActiveMQ. I have hunted through the ActiveMQ docs and don't see any reference to it. We can use a service polling the DB for inserts but the trigger would be the ideal solution. 回答1: but the trigger would be the ideal solution Absolutely not. There are many reasons why this is a bad idea, but I'll give you the main ones: added latency on each DML as you need to wait on an RPC call to complete. operational

Can a SqlServer trigger push to ActiveMQ

老子叫甜甜 提交于 2020-01-04 16:58:23
问题 can anyone tell me if it is possible to push data from a SqlServer trigger directly to ActiveMQ. I have hunted through the ActiveMQ docs and don't see any reference to it. We can use a service polling the DB for inserts but the trigger would be the ideal solution. 回答1: but the trigger would be the ideal solution Absolutely not. There are many reasons why this is a bad idea, but I'll give you the main ones: added latency on each DML as you need to wait on an RPC call to complete. operational