activemq

how to access the activemq statistics plugin in .net

天大地大妈咪最大 提交于 2019-12-02 07:20:08
问题 I am trying to access the activemq statistics information http://activemq.apache.org/statisticsplugin.html in c# This is what i have so far. I am not able to get a reply from the consumer. I can the count increase in monitor website for the queue. public class Statistics { private readonly string queueName = string.Empty; private readonly string queueToMonitor = string.Empty; private readonly IConnectionFactory connectionFactory; private readonly IConnection connection; private readonly

message-driven-channel-adapter drops first message after app context startup unless send is called with a delay

六月ゝ 毕业季﹏ 提交于 2019-12-02 06:37:06
I have an integration test for my Spring Integration config, which consumes messages from a JMS topic with durable subscription. For testing, I am using ActiveMQ instead of Tibco EMS. The issue I have is that I have to delay sending the first message to the endpoint using a sleep call at the beginning of our test method. Otherwise the message is dropped. If I remove the setting for durable subscription and selector, then the first message can be sent right away without delay. I'd like to get rid of the sleep, which is unreliable. Is there a way to check if the endpoint is completely setup

Properly iterating over queues from ActiveMQ DestinationSource.getQueues response

余生颓废 提交于 2019-12-02 06:07:52
问题 For some reason in the following code, destinationSource.getQueues() is returning a CopyOnWriteArraySet instead of a simple Set . This is a problem because the for loop begins to process before the Set is full and due to the nature of CopyOnWriteArraySet it will only process the items in the Set before the loop. I know I can throw a Thread.sleep() in there but that doesn't fix the underlying problem. Is there any reason it would be returned as a CopyOnWriteArraySet instead of a Set ? Also is

springboot整合activemq

痞子三分冷 提交于 2019-12-02 05:49:52
1.pom依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.fengshun</groupId> <artifactId>consumer</artifactId> <version>1.0-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.0.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot<

ActiveMQ配置详解

岁酱吖の 提交于 2019-12-02 04:51:28
原文链接 一.消息目的地策略 在节点destinationPolicy配置策略,可以对单个或者所有的主题和队列进行设置,使用流量监控,当消息达到memoryLimit的时候,ActiveMQ会减慢消息的产生甚至阻塞,destinationPolicy的配置如下: <!-- Destination specific policies using destination names or wildcards --> <!-- wildcards意义见http://activemq.apache.org/wildcards.html --> <destinationPolicy> <policyMap> <policyEntries> <!-- 这里使用了wildcards,表示所有以Msg开头的topic --> <policyEntry topic="Msg.>" producerFlowControl="false" memoryLimit="10mb"> <!-- 分发策略 --> <dispatchPolicy> <!-- 按顺序分发 --> <strictOrderDispatchPolicy/> </dispatchPolicy> <!-- 恢复策略--> <subscriptionRecoveryPolicy> <!-- 只恢复最后一个message -->

ActiveMQ 5.11 with WebSphere Application Server 8.5

馋奶兔 提交于 2019-12-02 04:44:28
问题 Does anybody know which jars from ActiveMQ 5.11 I need to use with IBM Websphere Application Server 8.5 in order to create a new ActiveMQ JMS Provider? I found discussions related to older ActiveMQ versions that don't seem applicable anymore because the way ActiveMQ is packaged has changed: https://www.ibm.com/developerworks/community/blogs/timdp/entry/using_activemq_as_a_jms_provider_in_websphere_application_server_7149?lang=en ActiveMQ 5.11 doesn't seem to have activemq-core anymore,

Message from SQL Server to external application (activemq)

社会主义新天地 提交于 2019-12-02 04:17:00
I have a SQL Server database and Activemq installed in my system. I tried to create the endpoint to listen to the port where activemq is. The port is 61617 CREATE ENDPOINT InstInitiatorEndpoint STATE = STARTED AS TCP ( LISTENER_PORT = 61617 ) FOR SERVICE_BROKER (AUTHENTICATION = WINDOWS ); GO But it results in an error: The Service Broker endpoint cannot listen for connections due to the following error: '10013(An attempt was made to access a socket in a way forbidden by its access permissions.)'. Since activemq is already running on same port. Should I give different port? If I give different

Apache Camel: Reply received for unknown correlationID

﹥>﹥吖頭↗ 提交于 2019-12-02 03:39:51
There is a middleware in between of two other software components. In the middleware I'm routing Apache ActiveMQ messages by Apache Camel . this is how it works: 1stComponent uses middleware to send message to the 3rdComponent 3rdComponent replies the message and sends it back to the 1st (using middleware ). 1stComponent <<=>> Middleware <<=>> 3rdComponent Problem: I'm using ConcurrentConsumers in middleware. In the middle of sending a lot of messages sequentially, suddenly middleware stops all the process! there is no exceptions or messages! for example, first 100 of 500 messages got

消息中间之ActiveMQ

非 Y 不嫁゛ 提交于 2019-12-02 03:31:14
一、JMS (JAVA Message Service) 1、 JMS基本概念 JMS(JAVA Message Service,java消息服务)是java的消息服务,JMS的客户端之间可以通过JMS服务进行异步的消息传输。JMS(JAVA Message Service,java消息服务)API是一个消息服务的标准或者说是规范,允许应用程序组件基于JavaEE平台创建、发送、接收和读取消息。它使分布式通信耦合度更低,消息服务更加可靠以及异步性。 2、 JMS五种不同的消息正文格式 JMS定义了五种不同的消息正文格式,以及调用的消息类型,允许你发送并接收以一些不同形式的数据,提供现有消息格式的一些级别的兼容性。 StreamMessage -- Java原始值的数据流 MapMessage--一套名称-值对 TextMessage--一个字符串对象 ObjectMessage--一个序列化的 Java对象 BytesMessage--一个字节的数据流 3、 JMS两种消息模型 3.1 点到点(P2P)模型 使用 队列(Queue) 作为消息通信载体;满足 生产者与消费者模式 ,一条消息只能被一个消费者使用,未被消费的消息在队列中保留直到被消费或超时。比如:我们生产者发送100条消息的话,两个消费者来消费一般情况下两个消费者会按照消息发送的顺序各自消费一半(也就是你一个我一个的消费

Properly iterating over queues from ActiveMQ DestinationSource.getQueues response

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 03:23:17
For some reason in the following code, destinationSource.getQueues() is returning a CopyOnWriteArraySet instead of a simple Set . This is a problem because the for loop begins to process before the Set is full and due to the nature of CopyOnWriteArraySet it will only process the items in the Set before the loop. I know I can throw a Thread.sleep() in there but that doesn't fix the underlying problem. Is there any reason it would be returned as a CopyOnWriteArraySet instead of a Set ? Also is there any way to iterate over a CopyOnWriteArraySet to ensure all items would be covered, even ones