activemq

how to associate the activemq-core.xsd url with the activemq.xsd found in the jar file?

陌路散爱 提交于 2019-12-07 15:46:28
问题 Somebody knows how to associate the activemq-core.xsd url with the activemq.xsd found in the jar file (activemq-core-5.2.0.jar)? I dig some solution in internet but didn't work. I'm getting this error: Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 19 in XML document from class path resource [jms-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be

ActiveMQ在C#中的应用

半城伤御伤魂 提交于 2019-12-07 15:33:15
ActiveMQ是个好东东,不必多说。ActiveMQ提供多种语言支持,如Java, C, C++, C#, Ruby, Perl, Python, PHP等。由于我在windows下开发GUI,比较关心C++和C#,其中C#的ActiveMQ很简单,Apache提供NMS(.Net Messaging Service)支持.Net开发,只需如下几个步骤即能建立简单的实现。C++的应用相对麻烦些,稍后写文章介绍。 1、去ActiveMQ官方网站下载最新版的ActiveMQ,网址: http://activemq.apache.org/download.html 。我之前下的是5.3.1,5.3.2现在也已经出来了。 2、去ActiveMQ官方网站下载最新版的Apache.NMS,网址: http://activemq.apache.org/nms/download.html ,需要下载Apache.NMS和Apache.NMS.ActiveMQ两个bin包,如果对源码感兴趣,也可下载src包。这里要提醒一下,如果下载1.2.0版本的NMS.ActiveMQ,Apache.NMS.ActiveMQ.dll在实际使用中有个bug,即停止ActiveMQ应用时会抛WaitOne函数异常,查看src包中的源码发现是由于Apache.NMS.ActiveMQ-1.2.0-src/src

How to install or config activemq admin cosole(jetty) use apt-get command?

六月ゝ 毕业季﹏ 提交于 2019-12-07 12:29:05
问题 I have a Ubuntu machine 12.04 version. I use the following command to install the activemq : #sudo apt-get install activemq By the default apt-get only install activemq 5.5 core service on port 61616. Now I want the jetty admin console on port 8161. I've tried to copy the jetty.xml to /etc/activemq/instances-available/main/ and add the import to activemq.xml . Then the following error came when I run activemq in console mode ERROR: java.lang.Exception: org.springframework.beans.factory

Apache Camel/ActiveMQ priority route

醉酒当歌 提交于 2019-12-07 11:56:48
问题 I have two AMQ queues that have the same consumers. The first queue (Q1) handles 97% of the messages and the other (Q2) only 3%. Problem is that messages in Q2 need to process messages as soon as they are queued. So my problem is that when a message is available in Q2 I need somehow to suspend the first route to take it's consumers. The apache camel routing looks like this: <route id="q1"> <from uri="jms:recordAnalysisRequests" /> <to uri="bean:analysisService" /> </route> <route id="q2">

Sending Files using Active MQ with BlobMessage

我的梦境 提交于 2019-12-07 09:53:13
问题 I have an requirement in my application to send files from one application to another over HTTP/FTP protocol. I found following link which tells that the same can be done using Active MQ with supoort of Blob messages: activemq.apache.org/blob-messages.html I configured ActiveMq 5.8 on my windows machine, included required dependency for ActiveMQ lib in my pom.xml and i am able to send the simple javax.jms.TextMessage and javax.jms.MapMessage with org.springframework.jms.core.JmsTemplate But

MQ消息队列的12点核心原理总结

妖精的绣舞 提交于 2019-12-07 08:47:58
1. 消息生产者、消息者、队列 消息生产者Producer:发送消息到消息队列。 消息消费者Consumer:从消息队列接收消息。 Broker:概念来自与Apache ActiveMQ,指MQ的服务端,帮你把消息从发送端传送到接收端。 消息队列Queue:一个先进先出的消息存储区域。消息按照顺序发送接收,一旦消息被消费处理,该消息将从队列中删除。 2.设计Broker主要考虑 1)消息的转储:在更合适的时间点投递,或者通过一系列手段辅助消息最终能送达消费机。 2)规范一种范式和通用的模式,以满足解耦、最终一致性、错峰等需求。 3)其实简单理解就是一个消息转发器,把一次RPC做成两次RPC。发送者把消息投递到broker,broker再将消息转发一手到接收端。 总结起来就是两次RPC加一次转储,如果要做消费确认,则是三次RPC。 3. 点对点消息队列模型 点对点模型 用于 消息生产者 和 消息消费者 之间 点到点 的通信。 点对点模式包含三个角色: 消息队列(Queue) 发送者(Sender) 接收者(Receiver) 每个消息都被发送到一个特定的队列,接收者从队列中获取消息。队列保留着消息,可以放在 内存 中也可以 持久化,直到他们被消费或超时。 特点 每个消息只有一个消费者(Consumer)(即一旦被消费,消息就不再在消息队列中) 发送者和接收者之间在时间上没有依赖性

Syntax for selecting messages by Jms ID

孤街醉人 提交于 2019-12-07 08:23:41
问题 What is the correct syntax for selecting messages based on their corresponding JMS ID? Currently I use: String selector = "JMSMessageID='ID:305:1:5:1:1'"; messageConsumer = session.createConsumer(getRetryQueue(), selector); The above syntax works in test with a mocked broker. But towards ActiveMQ the messages are not polled. Original code: @Override public Message readMessageFromRetryQueueByJmsId(String jmsId) throws QueueingException { Connection connection = null; Session session = null;

ActiveMQ 5.15.x Release安装和配置--Linux篇

五迷三道 提交于 2019-12-07 08:22:50
阅读目录: 1. 关闭防火墙和Selinux 2. 下载并安装ActiveMQ 5.15.x Release版本 3. 启动并验证 4.配置ActiveMQ 5.15.x Release自启动 5.注意事项以及说明 1. 关闭防火墙和Selinux Linux的防火墙是咱们新手的噩梦,很多情况会出现能ping通,但是访问不了Web页面。所以开始就干掉它! 1.1 关闭防火墙 [root@localhost ~]# /etc/init.d/iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] 1.2 开机自动关闭防火墙 [root@localhost ~]# chkconfig iptables off 1.3 查看Selinux状态 [root@localhost ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted

Can the contents of an AMQ topic be viewed somehow?

本小妞迷上赌 提交于 2019-12-07 06:30:38
问题 I'm trying to view the contents of a topic using activemq-admin . This is what I'm trying: ./activemq-admin browse --amqurl tcp://localhost:61616 my.topic This is what I get as output: Java Runtime: Sun Microsystems Inc. 1.6.0_24 /usr/lib/jvm/java-6-sun-1.6.0.24/jre Heap sizes: current=62848k free=62190k max=932096k JVM args: -Dactivemq.classpath=/home/pc/dev/apache-activemq-5.3.1/conf; -Dactivemq.home=/home/pc/dev/apache-activemq-5.3.1 -Dactivemq.base=/home/pc/dev/apache-activemq-5.3.1

Spring Batch - Not all records are being processed from MQ retrieval

我们两清 提交于 2019-12-07 05:37:03
问题 I am fairly new to Spring and Spring Batch, so feel free to ask any clarifying questions if you have any. I am seeing an issue with Spring Batch that I cannot recreate in our test or local environments. We have a daily job that connects to Websphere MQ via JMS and retrieves a set of records. This job uses the out-of-the-box JMS ItemReader. We implement our own ItemProcessor, but it doesn't do anything special other than logging. There are no filters or processing that should affect incoming