jms

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

Push notifications to various devices through a common code

自作多情 提交于 2019-12-22 10:59:51
问题 I have a requirement which is that I have to push the messages to various users who are using android or iphone devices.I know the individual process to send the push notification to android or iphone application. Now my work is that I need to do the server side implementation in java so that messages can be sent to android and iphone devices.The number of users using the andrioid and iphone devices is large say 10000 people. So to implement this requirement What should be the approach. What

Glassfish application not working with maven library (gf-client)

梦想的初衷 提交于 2019-12-22 10:09:33
问题 For a school assignment I received a Netbeans project using JNDI and JMS with Glassfish (3 open source edition). All the Glassfish libraries this application is using are referenced by absolute path and all the other libraries (in the "lib" folder) are referenced by relative path. Since my group is working with a version control system the "lib" folder is included in the repository. This works fine because it is a small project. However the Glassfish libraries are problematic as I am a Linux

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.

Message Driven Bean Selectors (JMS)

你说的曾经没有我的故事 提交于 2019-12-22 08:39:32
问题 I have recently discovered message selectors @ActivationConfigProperty( propertyName="messageSelector", propertyValue="Fragile IS TRUE") My Question is: How can I make the selector dynamic at runtime? Lets say a consumer decided they wanted only messages with the property "Fragile IS FALSE" Could the consumer change the selector somehow without redeploying the MDB? Note: I am using Glassfish v2.1 回答1: To my knowledge, this is not possible. There may be implementations that will allow it via

Interaction between Java and Android

心已入冬 提交于 2019-12-22 08:25:31
问题 I am currently trying to research how to use Android with an existing java based system. Basically, I need to communicate to/from an Android application. The system currently passes object data from computer to computer using ActiveMQ as the JMS provider. On one of the computers is a display which shows object data to the user. What we want to do now is use a phone (running Android) as another option to show this object data to a user with wifi/network access. Ideally we would like to have a

Priority with activemq

隐身守侯 提交于 2019-12-22 05:54:24
问题 We're currentyly developping an application using JMS and activemq (5.5.1). We would like to define a higher priority for some messages, which would make them consumed first. After setting the producer and the consumer (through spring (3.1) JMSTemplate), the priority does not fully work. Indeed, when we "turn off" the consumer, and send some messages, the priority is respected, but when we add messages while the consumer is on, the messages are received in the same order they were sent. The

Encoding a JMS TextMessage

心已入冬 提交于 2019-12-22 05:25:42
问题 I'm receiving messages from a JMS MQ queue which are supposedly utf-8 encoded. However on reading the out using msgText = ((TextMessage)msg).getText(); I get question marks where non standard characters were present. It seems possible to specify the encoding when using a bytemessage , but I cant find a way to specify encoding while reading out the TextMessage . Is there a way to solve this, or should I press for bytemessages ? 回答1: We tried adding Dfile.encoding="UTF-8" to Websphere 's jvm

Is “fair queuing” possible with JMS

﹥>﹥吖頭↗ 提交于 2019-12-22 03:26:23
问题 I need to implement a fair queuing system such that messages are processed in a round robin fashion, based on the value of some message header, for all values of that header on messages currently queued. Messages in the system are naturally grouped by some property, of which there are many thousands of possible values and the set of values for messages currently queued changes over time. An analogy would be messages having a header which is the milliseconds part of the time, at the time of

Spring web to connect to HornetQ JMS embeded with Jboss server 7.1.1

我是研究僧i 提交于 2019-12-21 21:28:01
问题 I am trying to setup spring-web to connect to remote Jboss-7.1.1 HornetQ JMS by following this site. But I am getting below error, is there anything I need to add the spring-bean configuration. The current spring-web runs on tomcat. spring-bean.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:p="http://www.springframework.org