activemq

Connecting Unity3d Android application to ActiveMQ broker using MQTT

半腔热情 提交于 2019-12-06 15:52:05
问题 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

ActiveMQ简单介绍以及安装

旧巷老猫 提交于 2019-12-06 15:51:14
ActiveMQ是一个易于使用的消息中间件。 消息中间件 我们简单的介绍一下消息中间件,对它有一个基本认识就好,消息中间件(MOM:Message Orient middleware)。 消息中间件有很多的用途和优点: 1. 将数据从一个应用程序传送到另一个应用程序,或者从软件的一个模块传送到另外一个模块; 2. 负责建立网络通信的通道,进行数据的可靠传送。 3. 保证数据不重发,不丢失 4. 能够实现跨平台操作,能够为不同操作系统上的软件集成技工数据传送服务 MQ 首先简单的介绍一下MQ,MQ英文名MessageQueue,中文名也就是大家用的消息队列,干嘛用的呢,说白了就是一个消息的接受和转发的容器,可用于消息推送。 下面进入我们今天的主题,为大家介绍ActiveMQ: ActiveMQ 下载ActiveMQ 官方网站: http://activemq.apache.org/ 现在ActiveMQ最新的版本是5.11.1,下载挺简单的,就不再截图了。 运行ActiveMQ服务 下载,解压缩 大家现在好之后,将apache-activemq-5.11.1-bin.zip解压缩,我们可以看到它的整体目录结构: 从它的目录来说,还是很简单的: bin存放的是脚本文件 conf存放的是基本配置文件 data存放的是日志文件 docs存放的是说明文档 examples存放的是简单的实例

How to work with MQTT in Wildfly

為{幸葍}努か 提交于 2019-12-06 15:09:52
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 me to build a very basic App on WildWfly which demonstrates how to consume/produce JMS Messages through

Dynamic routing in camel en-queues messages infinitely

烈酒焚心 提交于 2019-12-06 15:02:08
I am working on camel’s dynamic router to derive and dispatch to the relevant queue by referring http://camel.apache.org/dynamic-router.html Following is the camel config xml: <route id="dynamicRouter" autoStartup="true"> <from uri="vm://service1?concurrentConsumers=10&timeout=0" /> <choice> <when> <simple>${body.documentStatus} == 'SUCCESS' </simple> <log message="routing to dynamic router" /> <dynamicRouter> <!-- use a method call on a bean as dynamic router --> <method ref="messageRouter" method="route" /> </dynamicRouter> </when> </choice> </route> Following is my dynamic router bean:

Spring和SpringBoot整合ActiveMQ

元气小坏坏 提交于 2019-12-06 14:32:12
一:ActiveMQ的Broker ActiveMQ除了可以作为独立进程单独部署在服务器上之外,也可以很小巧的内嵌在程序中启动,下面我们来简单的介绍内置Broker启动的一种方式。 1.1引入maven的依赖 <!--ActiveMQ依赖包--> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-all</artifactId> <version>5.15.9</version> </dependency> 1.2Java代码 package com.yjc.activemq; import org.apache.activemq.broker.BrokerService; public class Broker { public static void main(String[] args) throws Exception { BrokerService brokerService=new BrokerService(); brokerService.setUseJmx(true); brokerService.addConnector("tcp://localhost:61616"); brokerService.start(); } } 启动上面的main方法之后

What serialization method is used for an ActiveMQ NMS C# object message?

て烟熏妆下的殇ゞ 提交于 2019-12-06 13:23:00
I'm planning on using Apache NMS for ActiveMQ messaging, and am wondering what serialization method is going to be used on the objects I send? XML/Binary? What controls the serialization and how can I customize it? Does anyone have experience doing this with C# objects? Are there any pitfalls that you know of? The default is System.Runtime.Serialization.Formatters.Binary.BinaryFormatter for IObjectMessage. You can set your own by e.g. IObjectMessage m = session.CreateObjectMessage(); ((ActiveMQObjectMessage)m).Formatter=new SoapFormatter();//Or any IFormatter You'd need to set the formatter

JMS的组成

落爺英雄遲暮 提交于 2019-12-06 12:37:59
------------恢复内容开始------------ 1.JMS是什么 JMS即Java消息服务(Java Message Service)应用程序接口,是一个java平台中关于面向消息中间件(MOM)的API,用于在两个应用程序之间,或分布式系统中发送消息,进行异步通信。Java消息服务是一个与具体平台无关的API,绝大多数MOM提供商都对JMS提供支持。 2.JMS的主要组成部分 jms provider 消息中间件/消息服务器也就是MQ jms producer 消息生产者 jms consumer 消息消费者 jms message 消息 3.消息结构(jms message) 消息头: 红色的为常用的属性 1. JMSDestination :消息发送的目的地:主要指Queue和Topic,自动分配。 2. JMSDeliveryMode :传送模式。有两种:持久模式和非持久模式。一条持久性的消息应该被传送“一次仅仅一次”,这就意味着如果JMS提供者出现故障,该消息并不会丢失,它会在服务器恢复之后再次传递。一条非持久的消息最多会传送一次,这意味着服务器出现故障,该消息将永久丢失。自动分配。 3. JMSExpiration :消息过期时间,等于Destination的send方法中的timeToLive值加上发送时刻的GMT时间值。如果timeToLive值等于零

Active PooledConnectionFactory pooling Connections vs Sessions

混江龙づ霸主 提交于 2019-12-06 11:34:10
I'm looking at using PooledConnectionFactory in a Tomcat application, where in a Tomcat POST handler I want to drop a message into a queue to be picked up by a single remote consumer. AMQ pools both Connection and Session objects, and I'm trying to understand when I should use one over the other. The approach I'm considering is to have a single Connection and set MaximumActiveSessionPerConnection to match my Tomcat threads, and the POST handler would borrow and return Sessions from the connection. Does this sound reasonable, or are there are advantages to pooling Connections instead? If it

How to enable SSL over ActiveMQ using C client

家住魔仙堡 提交于 2019-12-06 11:21:38
问题 I have configured [ActiveMQ]http://activemq.apache.org/) with ssl context by following RedHat's SSL/TLS Tutorial. Then I converted the client keystore file in ActiveMQ/conf directory to .pem format. For this I followed Converting a Java Keystore into PEM Format on Stack Overflow. After both steps I tried with an Eclipse Paho MQTT C Client to connect to a ActiveMQ Broker over SSL, but it returns status -1. The code is as follows: MQTTClient client; MQTTClient_connectOptions conn_opts

Docker安装activeMQ

自作多情 提交于 2019-12-06 11:15:02
docker search activemq [root@192 env]# docker search activemq INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/webcenter/activemq ActiveMQ 5.14.3 with OpenJDK-jre-8-headles... 169 [OK] docker.io docker.io/rmohr/activemq Various versions of ActiveMQ neatly packet... 96 [OK] docker.io docker.io/vromero/activemq-artemis ActiveMQ Artemis image (Debian and Alpine ... 20 [OK] docker.io docker.io/cloudesire/activemq Latest activemq 4 [OK] docker.io docker.io/andreptb/activemq Debian Jessie based image with ActiveMQ in... 3 [OK] docker.io docker.io/aterreno/activemq-dockerfile 3 [OK