hornetq

How to get details of MessageReceivers of JMS Queue(HornetQ deployed in JBoss AS6)?

為{幸葍}努か 提交于 2019-12-23 03:45:31
问题 I need to get details of Message Receivers which are connected to JMS Queue, I am using HornetQ which is deployed in JBoss AS6. Is there such operation/API already defined in JMX/JMS? Any other approach to get details of MessageReceivers? I need to know number of MessageReceivers & their IP Address. Any suggestion is appreciated. Thanks. 回答1: There are method on the management with hornetQ 2.2.2+. Things like connectionID are exposed as meta-datas. 来源: https://stackoverflow.com/questions

Jboss client send message to remote hornetq in Jboss

此生再无相见时 提交于 2019-12-23 01:13:02
问题 I have a client run in JBoss (JB_Client) and it needs to send messages to a remote Jboss server (JB_Server) HornetQ . And Remote jboss server (JB_server) needs to send the response message back to it's HornetQ . So JB_Client MDB is listening to remote HorentQ for the responses. I am using Jboss AS6 for my client and server. This system works perfectly in local environment which is client and server both in same Jboss . But now I need to separate client and server in to two machines. here is

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

JMS message priority not working on Message

余生长醉 提交于 2019-12-21 07:08:28
问题 I need to set message priority so that High priority messages are consumed before Low priority messages by Receivers. First I tried with message.setJMSPriority() method to set the priority but it was not working in HornetQ and ActiveMQ so finally I set the priority of the Message Producer using setPriority() method and it works fine now. Why isn't Messsge.setJMSPriority() working in any of the JMS vendor implementations and why do we need to set the priority of the Producer not the message

HornetQ on Tomcat

社会主义新天地 提交于 2019-12-21 04:16:17
问题 Is that possible to run HornetQ (JBoss JMS implementation) on Tomcat? The HornetQ documentation is all about JBoss AS or standalone scenarios... Update: This is from HornetQ feature list: "HornetQ is architected as a set of Plain Old Java Objects, it can therefore be run in JBoss Microcontainer, Spring, Google Guice or embedded in any third party product and instantiated directly". So I would be glad to to know how the Web Application (WAR) running on plain Tomcat can embed HornetQ? 回答1:

How do you process messages in parallel while ensuring FIFO per entity?

本秂侑毒 提交于 2019-12-17 20:24:18
问题 Let's say you have an entity, say, "Person" in your system and you want to process events that modify various Person entities. It is important that: Events for the same Person are processed in FIFO order Multiple Person event streams be processed in parallel by different threads/processes We have an implementation that solves this using a shared database and locks. Threads compete to acquire the lock for a Person and then process events in order after acquiring the lock. We'd like to move to

JMS queue with multiple consumers

你离开我真会死。 提交于 2019-12-17 12:15:33
问题 I have a JBoss-6 server with HornetQ and a single queue: <queue name="my.queue"> <entry name="/queue/test"/> </queue> There a different consumers (on different machines) connected to this queue, but only a single consumer is active at a time. If I shut down this consumer, the messages are immediately processed by one of the other consumers. Since my messages have some time consuming processing, I want multiple consumer process their unique messages concurrently. I remember a similar in

JNDI does not work with HornetQ and tomcat

坚强是说给别人听的谎言 提交于 2019-12-14 04:18:02
问题 I'm trying running JMS application using hornetq on tomcat! I tried following this article. I put jndi.properties in my client class path; jndi.properties: java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory java.naming.factory.url.pkgs=org.apache.naming I added these dependencies to pom.xml: <dependency> <groupId>tomcat</groupId> <artifactId>naming-factory</artifactId> <version>5.5.23</version> <scope>test</scope> </dependency> <dependency> <groupId>tomcat</groupId>

NameNotFoundException when starting JBoss with an EAR using HornetQ ConnectionFactory via JNDI

冷暖自知 提交于 2019-12-13 17:25:23
问题 I am currently trying to deploy an app on JBoss 6.1 which has some JMS MessageListeners in it. The MessageListeners get the connection factory via JNDI (using Spring), I am using the HornetQ default connection factory which is named ConnectionFactory . I am currently just using the default JMS Queues that JBoss starts with: DLQ and ExpiryQueue When I deploy via JMX the app has no problem starting. When I deploy by copying the app in to the deploy directory and start the server the app will