hornetq

jms Mule max redelivery exceeded

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 05:52:51
问题 I have very simple setup of MULE reading from the HornetQ queue and saving Object to database: setup below: <jms:connector name="connector.jms" maxRedelivery="1" connectionFactory-ref="hornetQConnectionFactory" doc:name="JMS" createMultipleTransactedReceivers="true" numberOfConcurrentTransactedReceivers="100" acknowledgementMode="AUTO_ACKNOWLEDGE"> <reconnect count="50" frequency="5000"/> </jms:connector> <flow name="jmsListenerFlow1" doc:name="jmsListenerFlow1"> <jms:inbound-endpoint queue=

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

旧时模样 提交于 2019-12-06 05:12:42
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? 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't know how to get that in Arquillian. Luckily, you can invoke management operations via the 'hornetq

How to make a queue persisted in HornetQ 2.2.5 core client?

故事扮演 提交于 2019-12-05 11:10:01
I want to make persisted queue in core hornetQ client. The problem is when I stop the server the queue and the data will be destroyed. How to make a queue persisted? My code is: import java.util.Date; import org.hornetq.api.core.TransportConfiguration; import org.hornetq.api.core.client.ClientConsumer; import org.hornetq.api.core.client.ClientMessage; import org.hornetq.api.core.client.ClientProducer; import org.hornetq.api.core.client.ClientSession; import org.hornetq.api.core.client.ClientSessionFactory; import org.hornetq.api.core.client.HornetQClient; import org.hornetq.api.core.client

Is “fair queuing” possible with JMS

*爱你&永不变心* 提交于 2019-12-05 00:57:25
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 message creation. Thus, the header will have a value between 0 and 999, and there will be some

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

跟風遠走 提交于 2019-12-04 15:18:53
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/schema/p" xmlns:jee="http://www.springframework.org/schema/jee" xsi:schemaLocation="http://www

HornetQ Core API and JMS

梦想与她 提交于 2019-12-04 13:03:31
I have few questions regarding HornetQ: What are differences between HornetQ core API and the JMS API ? is there any advantage or disadvantage on using one of these ? Is it true to say if I use the core API and then I decide to change my Messaging Bus (let's say to ActiveMQ) then I have to change all my codes ? HornetQ Core API is a proprietary API from HornetQ, while the JMS API is a standard API defined by the Java Community Process. There are a few features that are not supported on JMS API, that are available through core-api: It's not possible to have multiple consumers on a single topic

jms Mule max redelivery exceeded

陌路散爱 提交于 2019-12-04 09:17:35
I have very simple setup of MULE reading from the HornetQ queue and saving Object to database: setup below: <jms:connector name="connector.jms" maxRedelivery="1" connectionFactory-ref="hornetQConnectionFactory" doc:name="JMS" createMultipleTransactedReceivers="true" numberOfConcurrentTransactedReceivers="100" acknowledgementMode="AUTO_ACKNOWLEDGE"> <reconnect count="50" frequency="5000"/> </jms:connector> <flow name="jmsListenerFlow1" doc:name="jmsListenerFlow1"> <jms:inbound-endpoint queue="adsLogQueue" connector-ref="connector.jms" doc:name="JMS"> <jms:transaction action="ALWAYS_BEGIN"/> <

exact example for JMS Topic in HornetQ

独自空忆成欢 提交于 2019-12-04 05:11:00
问题 I read the hornetQ documentation, confused a lot. Can someone give an exact example to create a JMS topic in hornetQ. I mean the xml configurations in hornetq-jms.xml and hornetq-configuration.xml . assume we have a topic named top and 2 subscribers named: sub1 , sub2 . what I get is that we should define two queues(one for each subscribers) and bind them to an address which is the topic name actually, but how the subscriber would know they should connect to which one?(They only know the

JMS message priority not working on Message

僤鯓⒐⒋嵵緔 提交于 2019-12-03 23:30:14
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 itself to set the priority of the message? What is the use of Messsge.setJMSPriority() method then? Any

How to use FIND_JNI on cmake

。_饼干妹妹 提交于 2019-12-03 15:14:02
问题 I'm trying to write a build for my project where I'm trying to replace autobuild, and I need to proper use FIND_JNI. I could make a simple build but it's not properly finding jni.h And I need to find a proper way (without a hack) to define the Java include as this needs to be portable to other users. 回答1: The following code works for me. In your root CMakeLists.txt file add: find_package(JNI) if (JNI_FOUND) message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}") message (STATUS "JNI_LIBRARIES