activemq

Can topic messages be made persistent in activemq?

心已入冬 提交于 2019-12-04 07:23:21
I am very new to JMS and ESB. I am using activemq as JMS and mule as ESB. When i am forwarding the messages from one queue to another with jms connector parameter "persistentDelivery" as "true" it retains the messages in the target queue after activemq re-start. But in case of forwarding messages from one topic to another,the messages are not retained in the target topic after restart. Is there any limitation for persistence of messages in case of topic in activemq? Thanks in advance. Regards, Arijit topics are different in that messages are only retained if there is a durable consumer. see

SpringBoot之ActiveMQ实现延迟消息

荒凉一梦 提交于 2019-12-04 07:10:03
一、安装activeMQ ​ 安装步骤参照网上教程,本文不做介绍 二、修改activeMQ配置文件 ​ broker新增配置信息 schedulerSupport="true" <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true" > <destinationPolicy> <policyMap> <policyEntries> <policyEntry topic=">" > <!-- The constantPendingMessageLimitStrategy is used to prevent slow topic consumers to block producers and affect other consumers by limiting the number of messages that are retained For more information, see: http://activemq.apache.org/slow-consumer-handling.html --> <pendingMessageLimitStrategy>

Implement Request-Reply pattern using ActiveMQ, Camel and Spring

本小妞迷上赌 提交于 2019-12-04 06:50:48
I am trying to implement the following functionality: Read CSV file line-by-line then for every line: Build request based on the values that the line contains Send the request to the message queue Other component needs to pick up the message, process the request and send the response to another message queue (known to producer, so the producer could pick up the response). I believe that the request-reply pattern fits the bill. I installed ActiveMQ, downloaded camel and tried to use their jms project. After configuring the component, the queue and testing connection (worked), I tried to figure

ActiveMQ 文件传输

寵の児 提交于 2019-12-04 06:07:31
官方文档: http://activemq.apache.org/message-features.html 文档中引用其他网页内容! 方案 使用场景 优点 缺点 消息发送 小文件传输(文件转换为 byte[] ,然后安装正常消息传送) 小文件简单方便 传输大文件效率低下 JMS Stream (弃用) 大文件传输( 4.2 版本前的用户) 以流的形式传输,解决大文件传输的问题 官方文档已经弃用该方案。推荐 BlobMessage 自定义文件中转 大文件传输 不需要使用 broker 来传输文件,节省资源,效率高 需要独立 FTP 或者 File 服务器,且要处理复杂的 io 等方面的问题。 BlobMessage (推荐) 大文件传输 ActiveMQ 封装复杂过程,提供方便的接口调用,内置 Jetty 提供 httpServer ,方便简单效率高 支持 file , http , ftp 三种方式,内置 httpserver ,如果使用 file 方式需要自行搭建。 消息发送有如下几种方法: 1.作为消息发送,先读取所有的文件成 byte[] ,然后使用 ByteMessage ,把文件数据发送到 broker ,像正常的 message 一样处理 。只适合小文件发送。 2.JMS Stream e.g. ActiveMQConnection connection = ...;

Apache Camel pollEnrich is not copying all the files

可紊 提交于 2019-12-04 06:00:28
问题 I've a camel route which looks like below from("activemq:queue:upload" ) .pollEnrich().simple("file:basePath/${header.ID}?noop=true&recursive=true") .aggregationStrategy(new ExampleAggregationStrategy()) .timeout(2000) .toD("ftp:${header.destinationURI}") In my file system file:basePath/${header.ID} contains multiple folders. When above route is executed, only 1st file from the 1st folder will be copied to ftp server. Remaining folders(with subfolders) aren't getting copied to ftp server! And

Broker Network flooded with unconsumed ActiveMQ.Advisory.TempQueue messages

会有一股神秘感。 提交于 2019-12-04 05:34:37
I'm currently investigating a memory problem in my broker network. According to JConsole the ActiveMQ.Advisory.TempQueue is taking up 99% of the configured memory when the broker starts to block messages. A few details about the config Default config for the most part. One open stomp+nio connector, one open openwire connector. All brokers form a hypercube (one on-way connection to every other broker (easier to auto-generate)). No flow-control. Problem details The webconsole shows something like 1974234 enqueued and 45345 dequeued messages at 30 consumers (6 brokers, one consumer and the rest

Install & Configure ActiveMq On Mac

穿精又带淫゛_ 提交于 2019-12-04 05:29:10
问题 Can anyone assist me with steps to install ActiveMQ on mac. I have downloaded the older ActiveMQ and run command ./activemq start its shows pid file created. But when I try to access localhost:8161 from safari, it does not open. Please suggest. 回答1: Yes, I have observed this too, what I did was, Go to activemq folder on your machine inside the bin folder and do activemq start or activemq restart , after this the ActiveMQ instance starts correctly and you can access it using URL http:/

ActiveMq does not stop if broker is not available

你说的曾经没有我的故事 提交于 2019-12-04 05:03:03
问题 Getting the below error while stopping the Apache ActiveMQ 5.15.6. Setting the createConnector="false" becuase do not want default JMX connection. Note:- Start the ActiveMQ(activemq-admin.bat start) Stop the ActiveMQ(activemq-admin.bat stop) <managementContext createConnector="false"/> Error: Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi INFO: Broker not available at: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 来源: https://stackoverflow.com/questions

JMS Bridge Between WildFly 10 Artemis and ActiveMQ 5.14 (ONCE_AND_ONLY_ONCE Quality of Service)

时间秒杀一切 提交于 2019-12-04 04:46:49
问题 I'm trying to set up a JMS Bridge between Artemis (Running in WildFly 10) and ActiveMQ 5.14 In general the process seems to work smoothly, but unfortunately I'm getting stuck on the XA configuration that is necessary to get ONCE_AND_ONLY_ONCE QoS to work. Although messages do arrive on the ActiveMQ side, I get the following error in the WildFly log: 11:25:57,920 WARN [org.apache.activemq.artemis.jms.bridge] (Thread-97) AMQ342009: JMS Bridge failed to send + acknowledge batch, closing JMS

ActiveMQ Simple Authentication Plugin - user admin is not authorized to create: topic://ActiveMQ.Advisory.Connection

泪湿孤枕 提交于 2019-12-04 03:46:25
I modified our ActiveMQ configuration to use ActiveMQ Simple Authentication Plugin with a single user and password that has all rights to the broker <plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="admin" password="pass" groups="admins,publishers,consumers" /> </users> </simpleAuthenticationPlugin> <authorizationPlugin> <map> <authorizationMap> <authorizationEntries> <authorizationEntry queue=">" write="producers" read="consumers" admin="admins" /> </authorizationEntries> </authorizationMap> </map> </authorizationPlugin> </plugins> My java web app was previously