activemq

Newbie : ActiveMQ with Camel

 ̄綄美尐妖づ 提交于 2019-12-08 01:44:24
问题 I'm pretty new to this topic and need some explanation... We have a running ActiveMQ-Server, which should now be enhanced with Apache Camel routing and processing. Our whole configuration is XML based. My first approach was to do a plain <import resource="camel.xml"> at the end of our activemq.xml, but this seems to be the wrong path. These are the current transortConnectors: <transportConnectors> <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->

What serialization method is used for an ActiveMQ NMS C# object message?

╄→гoц情女王★ 提交于 2019-12-08 01:32:35
问题 I'm planning on using Apache NMS for ActiveMQ messaging, and am wondering what serialization method is going to be used on the objects I send? XML/Binary? What controls the serialization and how can I customize it? Does anyone have experience doing this with C# objects? Are there any pitfalls that you know of? 回答1: The default is System.Runtime.Serialization.Formatters.Binary.BinaryFormatter for IObjectMessage. You can set your own by e.g. IObjectMessage m = session.CreateObjectMessage(); (

Active PooledConnectionFactory pooling Connections vs Sessions

一曲冷凌霜 提交于 2019-12-08 01:26:48
问题 I'm looking at using PooledConnectionFactory in a Tomcat application, where in a Tomcat POST handler I want to drop a message into a queue to be picked up by a single remote consumer. AMQ pools both Connection and Session objects, and I'm trying to understand when I should use one over the other. The approach I'm considering is to have a single Connection and set MaximumActiveSessionPerConnection to match my Tomcat threads, and the POST handler would borrow and return Sessions from the

Is activemq reliable?

僤鯓⒐⒋嵵緔 提交于 2019-12-07 23:44:32
问题 We have put ActiveMQ on a fresh server. Configured it to use 'kahadb' (the preferred as we read) and set it to allow the file to expand to 2gb. Then when we put load on the queue (+- 500/sec), within a few minutes activemq crashes. When ActiveMQ tries to restart, it can't because the db is corrupt: 2010-11-29 13:00:50,359 | ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFException | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain java.io.EOFException at

ActiveMQ学习笔记(6)——JMS消息类型

谁说胖子不能爱 提交于 2019-12-07 19:56:29
1.前言 ActiveMQ学习笔记(四)——通过ActiveMQ收发消息 http://my.oschina.net/xiaoxishan/blog/380446 和ActiveMQ学习笔记(五)——使用Spring JMS收发消息 http://my.oschina.net/xiaoxishan/blog/381209 中,发送和接受的消息类型都是TextMessage,即文本消息(如下面的代码所示)。显然消息类型只有文本类型是不能满足要求的。 //发送文本消息 session.createTextMessage(msg); //接受文本消息 public void onMessage(Message msg) { TextMessage message = (TextMessage) msg; …… } 根据Message接口的方法,可以获取消息类型 String msgType = getJMSType() 根据 JSR 914: JavaTM Message Service (JMS) API ,JMS规范中的消息类型包括TextMessage、BytesMessage、MapMessage、StreamMessage和ObjectMessage 等五种。ActiveMQ也有对应的实现,下面我们结合Spring JMS分别来看一下五种消息类型的收发代码。 2.

Is it possible to mirror a single queue in ActiveMQ?

不问归期 提交于 2019-12-07 18:58:53
问题 I'm running ActiveMQ in a production system. Some of our queues are very high volume and some are very low volume. I'm interested in mirroring one of the low volume queues so that I can build informal monitoring services around the messages being received. Unfortunately, the only documentation I've been able to find seems to imply that Mirrored Queues are are all-or-nothing: you either create a topic for every single queue you have (and suffer the performance penalty of copying every message

Procedure to migrate from IBM MQ to ActiveMQ [closed]

眉间皱痕 提交于 2019-12-07 17:50:51
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I just need to know some basic information or the procedure that is followed when migrating from IBM MQ server to ActiveMQ. We are planning to migrate our messaging systems from IBM MQ to Active MQ. To be specific the migration is from MQ V7.0 to ActiveMQ V5.7.0. What would be the

Reconnect to ActiveMQ server after network failure

∥☆過路亽.° 提交于 2019-12-07 17:45:39
问题 we are using ActiveMQ 5.8.0 to connect our Java application via TCP to another system. Request/reply (synchronous with reply to temporary queue) works fine with our client and its corresponding part. But we are not sure about how to handle "abnormal" situations like e.g. a short network failure. We are testing if the application can continue its work normally after socket reconnect. But until now we couldn't manage that because the client seems not to automatically reconnect to the broker as

JMS listener - dynamically choose destinations

狂风中的少年 提交于 2019-12-07 17:13:03
问题 I have many destinations (queues) on ActiveMQ deployed on a separate server. I want to dynamically listen to these destinations from my program. Currently I'm listening to these destinations as shown below: <bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="failover://(tcp://192.168.25.26:61616)" /> </bean> <bean id="myMessageListener" class="MyMessageListener"></bean> <jms:listener-container container-type="default"

activeMQ topic flooding

不问归期 提交于 2019-12-07 16:57:49
问题 Running ActiveMQ 5.4.0. I have a group of users that subscribe and publish to each other on various topics through a common ActiveMQ JMS provider. After a while of activity, the ActiveMQ console starts displaying INFO|USAGE MANAGER memory limit reached. Stopping producer (ID ...... to prevent flooding topic ..... This message occurs repeatedly for various topics. I know that in some cases, some messages are never delivered. None of the producers on the 'net' are implementing any kind of flow