activemq

How to configure ActiveMQ memory settings under Apache Tomee?

五迷三道 提交于 2019-12-08 09:50:39
问题 I have an embedded ActiveMQ under Apache TomEE. TomEE configures JMS in a file called tomee.xml, in my case, it's configured like this <Resource id="Default JMS Resource Adapter" type="ActiveMQResourceAdapter"> BrokerXmlConfig = broker:(tcp://localhost:61616)?persistent=true ServerUrl = tcp://localhost:61616 DataSource = MyDataSource </Resource> Now, I'd like to specify custom memory settings, which is done in the activemq.xml file. TomEE can load activemq.xml configuration using Spring

How to rollback messages in Activemq

非 Y 不嫁゛ 提交于 2019-12-08 08:59:50
问题 I want to send acknowledgement to Activemq when variable x value is equals to 1 .If it not equals to 1 ,I want to redeliver messages to Activemq . Then only Activemq delivers that messages again to subscribers.For this I written the following programs. MessageConsumer.java : public class Consumer extends HttpServlet { @Override protected void service(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { try { ActiveMQConnectionFactory connectionFactory=new

openwire vs amqp, Which would perform better

烈酒焚心 提交于 2019-12-08 08:38:47
We currently use JMS API with ActiveMQ broker, looking over to move to RabbitMQ. Compared to openWire vs amqp which one would give best performance with java client-producer. I Couldn't find a comparison study on amqp(RabbitMQ) vs openwire (activeMQ) native protocol. I'm looking in terms of raw performance and ease of scalability. We currently use Spring Integration for ActiveMQ, I would like to know if its a drastic change to move to RabbitMQ(AMQP) even with Spring Integration. Is there any bridge similar to what ActiveMQ uses to do JMS<->AMQP forwarding ? ActiveMQ also supports AMQP: http:/

openwire vs amqp, Which would perform better

烂漫一生 提交于 2019-12-08 08:34:42
问题 We currently use JMS API with ActiveMQ broker, looking over to move to RabbitMQ. Compared to openWire vs amqp which one would give best performance with java client-producer. I Couldn't find a comparison study on amqp(RabbitMQ) vs openwire (activeMQ) native protocol. I'm looking in terms of raw performance and ease of scalability. We currently use Spring Integration for ActiveMQ, I would like to know if its a drastic change to move to RabbitMQ(AMQP) even with Spring Integration. Is there any

How can I push messages from Activemq to Java Application

假如想象 提交于 2019-12-08 08:30:49
问题 Hi developers, I want to write 2 .java files using JMS library names are MessageProducer and MessageConsumer . I added activemq-all-5.8.0.jar and commons-io-2.4.jar files in my lib folder.and I changed port number of Activemq from 61616 to 61617 . using MessageProducer.java file,I will send messages to Activemq .For this I wrote code it's working fine.If you want to see click on this Link. I want to send messages from Activemq to MessageConsumer.java .This is Application is in Apache Tomcat (

ActiveMQ Broker connectible only on Localhost

为君一笑 提交于 2019-12-08 07:52:54
问题 Is there a way to run a loopback JMS adapter that will only be detected locally? I'm not sure if my terminology is correct, but I want the ActiveMQ broker to only be connectible from the same machine that the broker is running on. 回答1: Make sure it's connector is only listening on localhost look in the config.xml files and change all 0.0.0.0 adresses to 127.0.0.1 来源: https://stackoverflow.com/questions/3669765/activemq-broker-connectible-only-on-localhost

Architecture of a web application using message queues

女生的网名这么多〃 提交于 2019-12-08 07:30:50
问题 I have a java web application which uses some form of custom message queuing via a database table (EmailQueue) to queue delivery of emails. The application is deployed on Tomcat and uses Quartz jobs which polls for new entries in the EmailQueue table to send. I now need to add queuing of a few other types of jobs and messages (notifications, sms, etc.) and am therefore looking into using a proper message queue (RabbitMQ, ActiveMQ, etc.) instead of the database. This is motivated by a few

How to rollback messages in Activemq

让人想犯罪 __ 提交于 2019-12-08 07:02:31
I want to send acknowledgement to Activemq when variable x value is equals to 1 .If it not equals to 1 ,I want to redeliver messages to Activemq . Then only Activemq delivers that messages again to subscribers.For this I written the following programs. MessageConsumer.java : public class Consumer extends HttpServlet { @Override protected void service(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { try { ActiveMQConnectionFactory connectionFactory=new ActiveMQConnectionFactory("admin","admin","tcp://localhost:61617"); RedeliveryPolicy policy = new

Configuring Activemq web console to use LDAP for authorization and authentication

蓝咒 提交于 2019-12-08 06:45:41
问题 I'm getting the following error when configuring activemq web console to use ldap for authentication and authorization. I'm using a free online test ldap for this http://www.forumsys.com/en/tutorials/integration-how-to/ldap/online-ldap-test-server/ and get the following error: java.lang.AbstractMethodError: org.eclipse.jetty.jaas.JAASLoginService.login(Ljava/lang/String;Ljava/lang/Object;)Lorg/eclipse/jetty/server/UserIdentity; at org.eclipse.jetty.security.authentication.LoginAuthenticator