activemq

SpringBoot + ActiveMQ - How to set trusted packages?

倖福魔咒の 提交于 2019-12-04 23:13:22
I'm creating two springboot server & client applications communicating using JMS, and everything is working fine with the release 5.12.1 for activemq, but as soon as I update to the 5.12.3 version, I'm getting the following error : org.springframework.jms.support.converter.MessageConversionException: Could not convert JMS message; nested exception is javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class MyClass! This class is not trusted to be serialized as ObjectMessage payload. Please

How to configure the ActiveMQ 5.10.0 HawtIO interface?

柔情痞子 提交于 2019-12-04 23:10:21
问题 I'm using ActiveMQ 5.9.0 that has a amazing HawtIO interface. So when 5.10.0 has come, I migrated my system too. Now I see that the HawtIO interface doesn't exist inside it... It just disappeared from webapps folder from 5.9.0 to 5.10.0, so I tried the tutorial ActiveMQ and HawtIO but it doesn't work... How to configure the interface? 回答1: Alternatively, you can use HawtIO as a standalone web-app, that connects to ActiveMQ through Jolokia (pre 5.9 way of doing it). Download the HawtIO

Connecting Unity3d Android application to ActiveMQ broker using MQTT

巧了我就是萌 提交于 2019-12-04 22:33:16
I am trying to connect an Unity3d Android application to an ActiveMQ server using MQTT protocol. In the log attached below I can see that the server is refusing me the connection. I have correctly portforwarded the required port to be accessible from outside. I have also tried to connect from the local network using the device's wi-fi. I am using a MQTT library for unity which can be found here: https://m2mqtt4unity.codeplex.com/ Currently the same application, the example that can be found in https://m2mqtt4unity.codeplex.com/documentation , is working fine in the unity editor and in

Writing tests to verify received msg in jms listener (Spring-Boot)

孤街醉人 提交于 2019-12-04 22:11:55
问题 I want to write test for something like below; There is a listener called state-info-1 in src/main . It does some changes to any message it gets and publishes the new message on activemq topic state-info-2 . I will build a dummy message and publish on to activemq topic state-info-1 . Finally verify that, the received message on topic state-info-2 is like i expected. My Listeners are like; @JmsListener(destination = "state-info-1", containerFactory = "connFactory") public void receiveMessage

Spring Boot WebSocket with embedded ActiveMQ Broker

爱⌒轻易说出口 提交于 2019-12-04 20:58:43
I tried to change an web application from simple broker to an embedded ActiveMq Broker with stomp using Spring boot 1.5.4 but always getting an error on start up Caused by: java.lang.IllegalArgumentException: No handlers at org.springframework.util.Assert.isTrue(Assert.java:92) ~[spring-core-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.web.socket.messaging.SubProtocolWebSocketHandler.start(SubProtocolWebSocketHandler.java:244) ~[spring-websocket-4.3.9.RELEASE.jar:4.3.9.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java

How do I make Spring JMSListener burst to max concurrent threads?

隐身守侯 提交于 2019-12-04 20:16:16
问题 I have a Spring JMS Application that is using ActiveMQ version 5.10. I am performing a simple test to concurrency. I am using Spring Boot, current version and annotations to configure JMSListener and message producers. The message producer just throws messsages on a queue as fast as it can. The message listener is pulling messages off the queue, but sleeping for 1 second after getting the message -- simulating some work that the message listener would need to do after getting a message. I

ActiveMQ5.15学习笔记

China☆狼群 提交于 2019-12-04 19:11:09
JMS即 Java消息服务 (Java Message Service)应用程序接口,是一个 Java平台 中关于面向 消息中间件 (MOM)的 API ,用于在两个应用程序之间,或 分布式系统 中发送消息,进行异步通信。Java消息服务是一个与具体平台无关的API,绝大多数MOM提供商都对JMS提供支持。 Apache ActiveMQ 是 Apache软件基金会 所研发的开放源代码 消息中间件 ;由于ActiveMQ是一个纯 Java 程序,因此只需要 操作系统 支持 Java虚拟机 ,ActiveMQ便可执行。 下载Apache ActiveMQ服务 下载后将zip 压缩包解压,将这个解压缩后的文件夹拷贝到指定位置,我本人的服务都在c盘下的service文件夹 找到C:\service\apache-activemq\bin\win64下的activemq.bat文件双击即可启动activemq服务器,如下图 说明已经启动完毕,可以登录主页面查看ActiveMQ的相关内容, 如果对话框一闪而过则需要配置环境变量 打开网页,在地址栏输入 http://127.0.0.1:8161 用户名,密码都是admin 并将apache-activemq目录下的activemq-all.5.15.10.jar拷贝到工程中lib文件夹下,即可使用ActiveMQ的所有功能。

How to delay consuming messages in Apache Camel from ActiveMQ

醉酒当歌 提交于 2019-12-04 17:54:28
I have a requirement where I need to throttle by shaping (queuing) inbound traffic when client app sends more than 1000 requests in a 5 sec time span. The solution I followed is: I have a camel:throttle setting max requests to 1000 and timespan to 5 sec. When threshold is exceeded I am catching throttle exception and within the onException block, I am sending the throttled messages to an ActiveMQ request queue for further processing later as Camel is overloaded based on 1000 req/ 5 sec config. I am successful in implementing the above, however I would like to have Camel consumer to further

消息队列

冷暖自知 提交于 2019-12-04 16:54:31
为什么使用消息队列 其实就是问问你消息队列都有哪些使用场景,然后你项目里具体是什么场景,说说你在这个场景里用消息队列是什么? 面试官问你这个问题,期望的一个回答是说,你们公司有个什么业务场景,这个业务场景有个什么技术挑战,如果不用 MQ 可能会很麻烦,但是你现在用了 MQ 之后带给了你很多的好处。 先说一下消息队列常见的使用场景吧,其实场景有很多,但是比较核心的有 3 个:解耦、异步、削峰。 解耦 看这么个场景。A 系统发送数据到 BCD 三个系统,通过接口调用发送。如果 E 系统也要这个数据呢?那如果 C 系统现在不需要了呢?A 系统负责人几乎崩溃...... 在这个场景中,A 系统跟其它各种乱七八糟的系统严重耦合,A 系统产生一条比较关键的数据,很多系统都需要 A 系统将这个数据发送过来。A 系统要时时刻刻考虑 BCDE 四个系统如果挂了该咋办?要不要重发,要不要把消息存起来?头发都白了啊! 如果使用 MQ,A 系统产生一条数据,发送到 MQ 里面去,哪个系统需要数据自己去 MQ 里面消费。如果新系统需要数据,直接从 MQ 里消费即可;如果某个系统不需要这条数据了,就取消对 MQ 消息的消费即可。这样下来,A 系统压根儿不需要去考虑要给谁发送数据,不需要维护这个代码,也不需要考虑人家是否调用成功、失败超时等情况。 总结:通过一个 MQ,Pub/Sub 发布订阅消息这么一个模型

issues interating jboss eap6 with ActiveMQ 5.9

我的未来我决定 提交于 2019-12-04 16:53:06
I have the activeMQ server running in the jvm at tcp://localhost:61616 then i place the activemq-rar-5.9.0.redhat-610379 unzipped adaptor in the \runtimes\jboss-eap\modules\system\layers\base\org\apache\activemq\main in the adaptor i have the Meta-INF in the jboss EAP6 , standalone.xml i have specified the But when i start the server ... i get the below error ** 12:05:39,910 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 40) JBAS014612: Operation ("add") failed - address: ([ ("subsystem" => "resource-adapters"), ("resource-adapter" => "activemq-rar.rar") ])