hornetq

Read large message file (*.msg) stuck in HornetQ

帅比萌擦擦* 提交于 2021-01-29 05:10:56
问题 I am working on a app which has a lot of asynchronous messages hosted by HornetQ 2.3.21. By some process my message size goes more than 2GB and the message starts failing with this message on the server: HQ212017: error adding packet: java.lang.IllegalStateException: Maximum size of 2gb exceeded at org.jboss.netty.buffer.DynamicChannelBuffer.ensureWritableBytes(DynamicChannelBuffer.java:82) [netty-3.6.9.Final-redhat-1.jar:3.6.9.Final-redhat-1] at org.jboss.netty.buffer.DynamicChannelBuffer

Pause MDB message Processing

我的未来我决定 提交于 2020-02-23 04:07:13
问题 Can we pause the MDB message processing for some time? For example: Jboss 1-deployed MDB for message processing. Jboss 2:-Bean for gathering user details. If the MDB from jboss 1 calls bean in jboss 2 for getting users details. If this is the case, when we restart the Jboss 2, we need to pause the MDB in jboss 1 till the jboss 2 is UP. Is there any option to pause MDB, so that we can avoid failure of message? 回答1: I doubt you can stop an MDB without stopping the whole application. It is

Spring JMS Listener Container stop only half of listeners

泪湿孤枕 提交于 2020-01-07 03:34:12
问题 I have weired problem with a JMS Listener container. In case I disable the listener container, half of messages are delivered and processed by listener. Here is my Spring configuration: <bean id="ConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="JmsXA" /> </bean> <bean id="testQueue" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="queue/test" /> </bean> <bean id="listener" class="eu.cuptech.jms

Message redistribution on ArtemisMQ 2.x does not work

感情迁移 提交于 2020-01-05 05:42:26
问题 I would like to enable message redistribution on my 2-nodes cluster with static hosts. But it does not seem to work. 1) I have 10 producers that write to the queue "MyTestQueue" on node 1 (but no consumers). 2) I have 1 consumer on node 2 (but no producers) that consumes messages from node 2. I expect that node 1 will redistribute the messages to node 2 where the consumer exists, but it does not. The message count on node 1 is still equal the amount of messages that was sent to node 1. I have

HornetQ OutOfMemory on startup with big journal

不问归期 提交于 2020-01-04 04:24:09
问题 Using: HornetQ 2.0.0.CR2 Default configurations for the stand-alone/non-clustered server. When I try to startup the server with a big journal (> 1Gb), I got a OutOfMemory exception: [main] 12:59:43,505 INFO [org.hornetq.integration.bootstrap.HornetQBootstrapServer] Starting HornetQ Server [main] 12:59:44,526 INFO [org.hornetq.core.server.impl.HornetQServerImpl] live server is starting.. [main] 12:59:44,532 WARNING [org.hornetq.core.server.management.impl.ManagementServiceImpl] It has been

How to clean HornetQ messaging journal before/after performing a test?

不打扰是莪最后的温柔 提交于 2020-01-02 06:57:12
问题 There's an Arquillian integration test using JMS HornetQ with persisted messages. Some test leave the messaging journal filled with unhandled messages that break other tests expecting no data. Is there a way of telling JMS to clean its messaging journal before or after executing a test? 回答1: This does not exist in the JMS API itself, but there's a method 'removeMessages(filter)' in the HornetQ QueueControl management object. This method can be found in the JMX Bean for the Queue, but I wouldn

JMS topology (Queue with multiple consumers) and message groups

烂漫一生 提交于 2019-12-25 03:39:16
问题 here is a simplified / schematic topology we set up [Front server 1 (message producer)] [Front server n (message producer)] | | |________________ ________________| | | [Messaging Server (HornetQ)] | | ________________| |________________ | | [Task server 1 (Message Driven Bean)] [Task server n (MDB)] Each node (server) is a standalone (no cluster) jboss application server (Jboss-as7) including the messaging one. The messaging server deploys many JMS queues. Each Task server deploys a MDB per

JBoss7 remote MDB connection to JMS queue -Connection failure has been detected

旧时模样 提交于 2019-12-24 11:27:46
问题 I am trying to develop an MDB for listening to remote queue in JBoss7, I Didn't receive messages from the queue. I got warnings in the server log: 11:32:41,882 WARN [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /137.72.223.212:50835. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might

HornetQ - java.lang.NoClassDefFoundError: Lorg/hornetq/core/logging/Logger;

左心房为你撑大大i 提交于 2019-12-24 08:14:28
问题 I am trying to run a simple HornetQ example from a book (HornetQ Messaging Developers Guide) but get error messages. I have not used maven since I wanted to stick close to the example given in the book. The HornetQ Standalone server started normally in command line. I am just trying to send a message to the HonretQ server. package chapter01; import javax.jms.JMSException; import javax.naming.NamingException; public class ECGMessageConsumerProducerExample { public static void main(String[]

How can I ensure that the hornet queues are there when my webapp starts in JBOSS 6.0?

删除回忆录丶 提交于 2019-12-24 02:45:23
问题 previous title was: How do I get a JNDI reference to a queue within JBOSS 6 using Spring? I configured a JMS queue like this, which is in a file mytopic-hornetq-jms.xml: <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd"> <topic name="mytopic"> <entry name="mytopic"/> </topic> </configuration> My applicationContext.xml looks like this: <?xml version="1.0"