hornetq

How to find a horneq Queue length

怎甘沉沦 提交于 2019-11-30 15:26:19
问题 I am using Hornetq 2.0 i dont understand how can i know how many message are sitting on the queue at the moment. This is a very useful feature so i can know at runtime if my consumer consume message fast enough. I am not using the JMS api but the highly optimised core API. What is the right (fastest) way to get the number of message in the queue ? I found 2 way but don't know what is the proper way to do it. public int size(){ ClientSession session; try { session = sf.createSession(false,

How to find a horneq Queue length

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 14:35:50
I am using Hornetq 2.0 i dont understand how can i know how many message are sitting on the queue at the moment. This is a very useful feature so i can know at runtime if my consumer consume message fast enough. I am not using the JMS api but the highly optimised core API. What is the right (fastest) way to get the number of message in the queue ? I found 2 way but don't know what is the proper way to do it. public int size(){ ClientSession session; try { session = sf.createSession(false, false, false); ClientRequestor requestor = new ClientRequestor(session, "hornetq.management");

How to upgrade HornetQ version in JBoss 6?

老子叫甜甜 提交于 2019-11-30 00:32:52
问题 I am using JBoss-6.0.0 AS which by default comes with HornetQ-2.1.2 version but this version of HornetQ has many Iteration related bugs which are now resolved in HornetQ-2.2.5 version which by default comes with JBoss 7 AS. I can't switch to JBoss 7 AS because I am already using many other services specific to JBoss 6 AS and it would be very risky for us to switch to JBoss 7 AS as of now. Is there anyway by which I can upgrade HornetQ version in JBoss 6 AS ? I tried with standalone HornetQ-2

JMS queue with multiple consumers

好久不见. 提交于 2019-11-27 14:41:28
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 earlier versions of JBoss where this setup worked without problems. Here in Jboss-6 the messaging system is