activemq

JMS auto acknowledgment consumer processing happens in onMessage

一笑奈何 提交于 2019-12-10 11:48:07
问题 I am not able to understand the below point on JMS AutoAck website: The below behaviour is followed in AUTO_ACKNOWLEDGE Right after the onMessage method returns successfully after invoking the consumer's MessageListener (which might still in progress as per my understanding) but as per my understanding, the Consumer implements MessageListener and does all the processing in the onMessage() method (which is implemented by Consumer) One more question: I am not able to understand the diff between

ActiveMQ performance in different Operating Systems

不打扰是莪最后的温柔 提交于 2019-12-10 11:37:25
问题 I have tested activeMQ JMSProducer in some operating systems. The results are as follows: AIX - Persistent - around 50 messages per second Solaris - Persistent - around 60 messages per second Linux - Persistent - around 500 messages per second Is that normal behaviour because in Linux, it is much much faster? ActiveMQ Performance document is only based on Linux. And, does Slow KahaDB access slow down activeMQ performance? Thanks. 回答1: With persisted connections you are highly dependant on the

ActiveMQ to Apollo transition, Openwire to Stomp protocol configuration

折月煮酒 提交于 2019-12-10 10:47:55
问题 I'm trying to switch from ActiveMQ 5.6 to Apollo 1.5. I have two soft that are exchanging messages, using publish/subscribe on topics. The first one is c++ and use openwire with tcp The second one is Javascript and use stomp with websockets With ActiveMQ everything worked fine, and the messages I sent could be read and write on both softs, and I didn't changed the clients since. Now, I send messages from the c++ soft (using openwire), and try to read them with the JS soft, and I get errors.

使用activeMq发送短信(短信接口是山东鼎信)

*爱你&永不变心* 提交于 2019-12-10 09:48:58
一、引入依赖 < ! -- activemq依赖 -- > < dependency > < groupId > org . springframework . boot < / groupId > < artifactId > spring - boot - starter - activemq < / artifactId > < / dependency > < dependency > < groupId > javax . jms < / groupId > < artifactId > javax . jms - api < / artifactId > < version > 2.0 .1 < / version > < / dependency > < ! -- 阿里短信发送 -- > < dependency > < groupId > org . apache . httpcomponents < / groupId > < artifactId > httpclient < / artifactId > < / dependency > < dependency > < groupId > org . apache . httpcomponents < / groupId > < artifactId > httpcore < / artifactId > <

How will I send messages to Activemq

…衆ロ難τιáo~ 提交于 2019-12-10 09:01:54
问题 I never work on JMS . Recently I downloaded Activemq and changed port no from 61616 to 61617 in all conf/activemq-*.xml files.I run the following command from command prompt and open console page on browser. C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0\bin>activemq Now I want to send messages from java code using JMS to Activemq .For this I wrote the following code. And run my code using Apache Tomcat server.it's not working This code is implemented in Eclipse. package

在Spring中使用ActiveMQ发送邮件

断了今生、忘了曾经 提交于 2019-12-10 07:20:21
转自http://dev.ymeng.net/spring-activemq-mail.html 项目的后台要求在更改密码后发送邮件通知用户,为了避免发送邮件时程序对用户操作的阻塞,之前中文版中使用了线程来发送邮件,而在英文版中,我决定使用JMS来异步发送邮件,让用户更改密码的操作和发送邮件的操作更进一步解耦,也在实际环境中试试JMS。   我们的环境是Spring 2.5, Tomcat 5.5,使用ActiveMQ来实现JMS传送和接收。   首先,我们在Spring中加入ActiveMQ Broker的配置: <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean"> <property name="config" value="classpath:activemq.xml" /> <property name="start" value="true" /> </bean>   我们在此处配置了BrokerFactoryBean,此Bean实现在Spring中配置嵌入式Broker,并且支持XBean方式的配置。Broker的配置文件由config属性指定,此处定义配置文件位于classpath中的activemq.xml。   接下来我们需要创建Broker的配置文件activemq.xml

activemq ObjectMessage 不鼓励使用,有安全隐患

≡放荡痞女 提交于 2019-12-10 05:10:22
ObjectMessage objects depend on Java serialization of marshal/unmarshal object payload. This process is generally considered unsafe as malicious payload can exploit the host system. That's why starting with versions 5.12.2 and 5.13.0 , ActiveMQ enforces users to explicitly whitelist packages that can be exchanged using ObjectMessages. If you need to exchange object messages, you need to add packages your applications are using. You can do that with by using org.apache.activemq.SERIALIZABLE_PACKAGES system property of the broker. You can add this system property to ACTIVEMQ_OPTS variable in $

A fatal error has been detected by the Java Runtime Environment. EXCEPTION_ACCESS_VIOLATION

Deadly 提交于 2019-12-10 02:02:19
问题 I have java 1.6, maven 2, activeMQ 5.5 and functional tests with testng. When I launch it in Idea then OK, but when I try to launch them with maven from console then process suspends after trying to send message via activeMQ and after some time crashes with the following error in log: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d92f7a6, pid=5716, tid=7000 # # JRE version: 6.0_27-b07 # Java VM: Java HotSpot

My C++ ActiveMQ client can send messages, but not receive messages

白昼怎懂夜的黑 提交于 2019-12-09 23:53:06
问题 I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and running. In the console window, it shows the messages are being sent, though they're not being received. I can both send and receive messages with ActiveMQ-CPP 2.0.1, but not 2.2.1. I'm new to ActiveMQ and don't even know where to begin troubleshooting. Any thoughts/suggestions/good place to start would be a great help. It if helps, I'm using the ActiveMQ 5.1.0 binary. Thanks in advance! 回答1: I'd recommend posting this to

RabbitMq、ActiveMq、ZeroMq、kafka之间的比较,资料汇总

我只是一个虾纸丫 提交于 2019-12-09 21:11:20
MQ框架非常之多,比较流行的有RabbitMq、ActiveMq、ZeroMq、kafka。这几种MQ到底应该选择哪个?要根据自己项目的业务场景和需求。下面我列出这些MQ之间的对比数据和资料。 TPS 比较 ZeroMq 最好, RabbitMq 次之, ActiveMq 最差。这个结论来自于一下这篇文章。 http://www.cnblogs.com/amityat/archive/2011/08/31/2160293.html 3 、持久化消息比较 zeroMq 不支持 , activeMq 和 rabbitMq 都 支持 。 持久化消息主要是指: MQ down 或者 MQ 所在的服务器 down 了,消息不会丢失的机制。 4 、技术点:可靠性、灵活的路由、集群、事务、高可用的队列、消息排序、问题追踪、可视化管理工具、插件系统、社区 RabbitMq最好,ActiveMq次之,ZeroMq最差。当然ZeroMq也可以做到,不过自己必须手动写代码实现,代码量不小。尤其是可靠性中的: 持久性 、 投递确认 、 发布者证实 和 高可用性 。 所以在可靠性和可用性上, RabbitMQ 是首选,虽然 ActiveMQ 也具备,但是它性能不及 RabbitMQ 。 5 、高并发 从实现语言来看,RabbitMQ最高,原因是它的实现语言是天生具备高并发高可用的 erlang 语言。 总结