activemq

ActiveMQ AMQP with JMS transformer leveraging spring Integration

怎甘沉沦 提交于 2019-12-23 05:37:07
问题 I am trying to get a barebones application same up and running leveraging ActiveMQ's AMQP with the JMS transformer. My Client library is Spring Integration, however, I cannot get a basic sample up and running in this configuration. details on ActiveMQ's JMS transformer over AMQP: http://activemq.apache.org/amqp.html main test app @IntegrationComponentScan @SpringBootApplication public class SpringCloudStreamJmsActivemqSenderExampleApplication implements CommandLineRunner { @Bean public

JMS messages and load balancing of JMS messages [closed]

大城市里の小女人 提交于 2019-12-23 05:19:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Have this design problem and trying to find a best way to implement it using JMS. Web App has single Listener and multiple Producer

Unable to connect to Apache ActiveMQ with Node.js

ⅰ亾dé卋堺 提交于 2019-12-23 03:49:11
问题 Background Trying to connect to my Apache ActiveMQ broker using the AMQP 1.0 protocol via amqp10. I am using the following code (adapted from the original example in the README): const AMQPClient = require("amqp10").Client; const Promise = require("bluebird"); //Fix from: https://github.com/noodlefrenzy/node-amqp10/issues/241 const activeMQPolicy = require("amqp10").Policy; const client = new AMQPClient(activeMQPolicy.ActiveMQ); const setUp = () => { return Promise.all([ client.createReceiver

How to get the message from temporary Queue in Different session

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:26:13
问题 i am new to jms and activemq. i produce one message to one static queue in activemq and get reply back to temporary queue using getJMSReplyTo. the code is following ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616"); // Create a Connection Connection connection = connectionFactory.createConnection(); connection.start(); // Create a Session Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); // Create the destination

Error in setExceptionListener in sending message via JmsTemplate to ActivemQ (as external broker of Jboss-eap)

。_饼干妹妹 提交于 2019-12-23 02:42:45
问题 Based on this article, I've connected Jboss eap 6.2 to an external ActivemQ 5.9.0 . For sending/receiving message i'm using JmsTemplate and DefaultMessageListenerContainer in spring-jms 4.1.1 . Receiving message is working fine, but in sending message i get this error: 11:33:37,059 ERROR [stderr] java.lang.reflect.InvocationTargetException 11:33:37,060 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:33:37,060 ERROR [stderr] at sun.reflect

difference between embedded and standalone activemq broker

我是研究僧i 提交于 2019-12-23 02:19:18
问题 I am using Spring for my application. I am wondering what differences there is between "embedded" ActiveMQ and "stand-alone" ActiveMQ. If I run ActiveMQ embedded, does thing mean remote clients can still connect up? Is my understand correct that embeded ActiveMQ means that ActiveMQ will start automatically when I start my Spring application, or is there some other meanings to it? For example Let's say I have deployed one application in system-A and deployed the same application in system-B.in

ActiveMQ入门系列之应用:Springboot+ActiveMQ+JavaMail实现异步邮件发送

☆樱花仙子☆ 提交于 2019-12-23 01:06:14
现在邮件发送功能已经是几乎每个系统或网址必备的功能了,从用户注册的确认到找回密码再到消息提醒,这些功能普遍的会用到邮件发送功能。我们都买过火车票,买完后会有邮件提醒,有时候邮件并不是买完票立马就能收到邮件通知,这个就用到了异步邮件发送。 那怎么实现邮件的异步发送呢? 很显然,引入MQ是一个不错的选择。刚好这段时间在练习ActiveMQ,那就拿activemq来实现异步发送邮件吧。 一、springboot整合JavaMailSender 在发送异步邮件之前,先来简单介绍下邮件发送的基本内容,了解邮件是怎么发送的,然后再在此基础上添加activemq。 要发送邮件就要用到 JavaMail ,它是Java官方为方便Java开发人员在应用程序中实现邮件发送和接收功能而提供的一套标准开发包,它支持常见的邮件协议:SMTP/POP3/IMAP/MIME等。想要发送邮件只需要调用JavaMail的API即可。后来,Spring对于JavaMail进行了封装,然后springboot又进一步封装,现在使用起来非常方便。请看代码: 新建springboot工程:mail-sender 添加配置文件:application.properties ###mail config ### spring.mail.host=smtp.qq.com(配置邮件发送协议) spring.mail

How to work with MQTT in Wildfly

帅比萌擦擦* 提交于 2019-12-22 17:53:57
问题 I am working on a platform to monitor and control devices which use MQTT for the communication layer. I use REST endpoints for the Angular2 based SPA Web. The backend is developed in JEE using WildFly which support out of the box the MQTT protocol through is JMS Broker(Active MQ). I am new in JEE and don’t know a lot of things: - I have never used the JMS System - I can’t find any information o tutorial to point me in the right way to get MQTT messages through a JMS Application. Can you help

ActiveMQ: how to programmatically monitor embedded broker

删除回忆录丶 提交于 2019-12-22 11:29:03
问题 I want to monitor an embedded ActiveMQ 5.8 broker from inside the code. How can this be done? Do I need a JMX connection? I want to prevent exposing JMX Is there a way of accessing org.apache.activemq.broker.jmx Beans without JMX? Are there Hooks, Listeners, Events, ... that can be attached to the broker itself? If this is a really bad idea, why? 回答1: You can access all the standard JMX MBeans from within the process that has an embedded broker without creating the JMX connector that would

How to Produce from MQTT and consume as MQTT and JMS in ActiveMQ

丶灬走出姿态 提交于 2019-12-22 09:55:22
问题 I have a setup where messages are produced as MQTT to ActiveMQ. I have two consumers one as JMS and another MQTT. When I am publishing message as JMS Message to the topic "foo", I am receiving the messages at both JMS and MQTT consumers, but when I am publishing as MQTT on the same topic I receive the message only on MQTT consumer and nothing at all is received at JMS consumer. Is there something I need to do specifically when publishing as MQTT to be able to consume as MQTT as well as JMS.