activemq

ActiveMQ: starting consumer without broker

狂风中的少年 提交于 2019-12-12 09:06:22
问题 I am writing a JMS client that consumes from a Queue. My broker is activemq, if it matters. One requirement is that the client should start even if the broker is down. In that case it should behave as if there where no messages in the Queue, and once the broker is up and messages start coming behave accordingly. The problem is that in my code: connectionFactory = new ActiveMQConnectionFactory(url); Connection connection = connectionFactory.createConnection(); connection.start() If the broker

How to configure embedded ActiveMQ Broker URL with Spring Boot

无人久伴 提交于 2019-12-12 08:33:12
问题 I followed a simple example of setting up and running embedded ActiveMQ with Spring Boot (version 1.4.X). Here's link to the example https://spring.io/guides/gs/messaging-jms/ My class is structured as below: @SpringBootApplication @EnableJms public class Application { @Autowired ConfigurableApplicationContext context; @Bean JmsListenerContainerFactory<?> myJmsContainerFactory(ConnectionFactory connectionFactory) { SimpleJmsListenerContainerFactory factory = new

Accessing Apache ActiveMQ via JMX throws Exception Broker Not Found 5.10

…衆ロ難τιáo~ 提交于 2019-12-12 05:27:40
问题 I'm using a fresh ActiveMQ 5.10.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" JMXServiceURL url1 = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://10.222.222.222:1099/jmxrmi"); JMXConnector jmxc = JMXConnectorFactory.connect(url1);

jconsole to connect to apachemq

依然范特西╮ 提交于 2019-12-12 05:06:50
问题 activemq : apache-activemq-5.14.0 jconsole using jdk1.7 I have started the activemq which comes with the jetty server. Minor change to make the jmx enable is by making change in activemq.xml managementContext createConnector="true" --- default is false when i start i am seeing the message JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi So I start Jconsole use remote process and use service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi with no password : it says

Subscribing to ActiveMQ from Unity3D app on Android

折月煮酒 提交于 2019-12-12 04:22:26
问题 I am developing an Android app which needs to subscribe to an ActiveMQ publisher. I'm using "Apache NMS ActiveMQ" that can be found here: http://activemq.apache.org/nms/activemq-downloads.html All was going very easy, running smoothly on the editor, and standalone(.exe). Problem happens when I try to run the application in my Android device. It builds fine, but the application does not start. From the android debug console I get the following debug log: --------- beginning of /dev/log/system

java.lang.NoClassDefFoundError: Could not initialize class org.apache.activemq.util.IdGenerator

你。 提交于 2019-12-12 04:13:18
问题 I am trying to use ActiveMQ 5.10.0 with SoapUI 4.6 and Hermes 1.14 . I get the error below when I try and add a queue. I presume Hermes can't find the type IdGenerator in any of the loaded jars. Which are: activemq-client-5.10.0.jar geronimo-j2ee-management_1.1_spec-1.0.1.jar geronimo-jms_1.1_spec-1.1.1.jar Does anyone know where this class is defined? I looked for activemq-util.jar in the binary distribution but I did not find such a file. Error: java.lang.NoClassDefFoundError: Could not

Throttle consumption rate of all JMS consumers listening on an ActiveMQ queue

折月煮酒 提交于 2019-12-12 03:27:39
问题 Using Camel Throttler component you can define an upper limit on the rate of consumed messages per time period, e.g.: from("activemq:queueA").throttle(10).to("direct-vm:bla") What I see as non ideal is that Camel Throttler keeps the exchanges in-memory while they are blocked by the Throttler. So, if you have 100 queue consumers and for any reason the "direct-vm:bla" is slow (e.g. invoking external slow service), you may have in-memory up to 100 exchanges! I was wondering if there is an

Designing fair message consumption in a distributed system

青春壹個敷衍的年華 提交于 2019-12-12 03:25:25
问题 We have a distributed application that does work on behalf of multiple clients. Right now as work arrives messages are put on a single queue. The messages are pulled of in FIFO order and this works fine most of the time. There are occasions where we will get thousands of messages for a single client which then occupy the first thousand+ slots in the queue. This means that no (or very little) work can be done for any other client until those messages are processed - this starves the smaller

Controlling Start-Up and Shutdown of Camel Routes

守給你的承諾、 提交于 2019-12-12 02:52:34
问题 I am trying to make kind of a polling service towards a activemq queue using camel routes. I am using routing and routing-jsm plugins for grails. I have my route configuration set like this. class QueueRoute { def configure = { from("activemq:daemon").routeId("daemonRoute") .noAutoStartup() .shutdownRunningTask(ShutdownRunningTask.CompleteCurrentTaskOnly) .to('bean:daemonCamelService?method=receive') .end() } } and I am basically trying to do .suspendRoute("daemonRoute") and .resumeRoute(

push messages to active mq via proxy using http transport

China☆狼群 提交于 2019-12-12 02:36:16
问题 Hi I am trying to push messages to active mq via http transport. The active mq is behind the proxy server which need authentication before pushing the message to external active mq. is there a way I can set the proxy details to active mq connection. I read some article where mentioned we can use HttpClientTrasport. But i am not sure how to set the HttpClientTrasport to ActiveMQConnection object. Thanks in advance. 回答1: if i understand you want to set the proxy config for org.apache.activemq