activemq

Logback configuration issue, cannot find logback.xml

筅森魡賤 提交于 2019-12-12 02:00:00
问题 My project is configured to be able to pick up logback.xml automatically if it's located in the same directory as the .jar file. Normally I just run my project with java -jar app.jar and logback picks up logback.xml automatically and configures itself. These are the contents of my MANIFEST.MF file: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: Dev Build-Jdk: 1.7.0_45 Main-Class: com.app.middleware.App Class-Path: . However, once I added a new Maven

Implementing Publish Subscribe using Spring Integration JMS in ActiveMQ

倾然丶 夕夏残阳落幕 提交于 2019-12-12 01:44:16
问题 I have developed a producer and consumer using Spring Integration API's PublishSubscribe Channel in ActiveMQ. I could publish and receive the messages using the implementation but only one service-activator consuming the message in round-robin fashion. I need to make sure whether it is right. Below are my configurations: Producer side: <int:publish-subscribe-channel id="jmsPubSubChannel" /> <int-jms:outbound-channel-adapter channel="jmsPubSubChannel" destination-name="${jms.topic.name}" pub

How to save messages and Topics in Activemq?

泄露秘密 提交于 2019-12-12 00:33:32
问题 I have a Queue and Topic with 2 messages in Activemq .If I restart Activemq .I am losing messages and also Topic . Even If I restart Activemq ,I don't want to lose any messages from any Topic and Queue .Is it possible. I am using Activemq 5.8.0 . 回答1: A producer produces the message and send it to the Topic, which ever consumer is running at that point of time, will receive the message. If you want consumer which is not up now, but might be running in future to get this message, you will have

Discover a running ActiveMQ message broker using IP multicast

╄→尐↘猪︶ㄣ 提交于 2019-12-12 00:29:05
问题 The Apache ActiveMQ broker supports discovery with IP multicast. This feature is activated in the default 'demo' configuration (see below). I would like to implement the discovery feature in other languages (Delphi / Free Pascal). Is there some minimal code example or introduction page on the web which shows how this would be implemented in Java? If I understand correctly, the multicast would trigger an answer of the message broker, which contains information about IP and port of the message

How does one enable or verify the REST interface of ActiveMQ?

人盡茶涼 提交于 2019-12-11 23:02:00
问题 I setup ActiveMQ 5.8.0 on a Windows 2003 virtual server for development purposes. I understand that there is suppose to be a REST interface for reading from and writing to queues and such. But, I can't seem to track down how to do it exactly. Port 8161 can be used to access the admin console, but every URL I try from Firefox Poster returns a 404. I tried URLs like these: http://localhost:8161/queues <-- 404 http://localhost:61616/queues <-- some default message http://localhost:61616/queue

Apache Camel inOut routes, out exchange marshaling/unmarshaling with jaxb

﹥>﹥吖頭↗ 提交于 2019-12-11 20:44:38
问题 we have this apache camel route, from(commandDrop).marshal(jaxbDataFormat).to(jmsQueue); from(jmsQueue).inOut("jms:doCommand?requestTimeout=500000"); from("jms:doCommand").unmarshal(jaxbDataFormat).beanRef("bean"); .... and a bean class like this class BeanClass { public void doCommand(Command command, Exchange exchange){ { command.run(); exchange.getOut().setBody(command); } } we trying to put a message and wait for a reply on the route like this Object ret = template.requestBody(commandDrop

How can I fix log4j warning messages in Tomcat

醉酒当歌 提交于 2019-12-11 19:40:00
问题 I am new to JMS and Activemq .using Google and stack overflow help I am sending messages from my Java program to Activemq using the following code. package PackageName; import java.io.IOException; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http

使用注解和xml两种方式整合Activemq与spring(gradle工程)

你。 提交于 2019-12-11 19:26:38
一、新建gradle工程 1.1 使用intellij新建gradle工程步骤省略 二、导入依赖,配置build.gradle plugins { id 'java' } group 'com.bdht' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' compile group: 'org.springframework', name: 'spring-context' compile group: 'org.apache.activemq', name: 'activemq-all', version: '5.15.9' compile group: 'org.apache.activemq', name: 'activemq-pool', version: '5.15.9' compile group: 'org.springframework', name: 'spring-jms', version: '5.1.9.RELEASE' compile group: 'org.springframework',

How to push messages from Activemq to consumer

此生再无相见时 提交于 2019-12-11 19:25:22
问题 I am new to Activemq and Java ,I read tutorials,somewhat I understand.can anyone help me to solve the following task. Imagine we have a 10 messages in Queue/Topic of Activemq. we are getting messages from Database,we already did it. I want to write 2 Java Applications (using JMS for receiving messages from activemq ) that will act as a consumer in Activemq. What i want to achieve out of this is that whenever Activemq get messages from Database, activemq should check if any consumer is free or

Creating durable subscriber using Polling Consumer in camel

左心房为你撑大大i 提交于 2019-12-11 18:20:57
问题 I am trying to create a durable subscriber using polling consumer. The URI is correct as same uri is working when used in camel route and durable subscriber is correctly created. For some reason PollingConsumer is not able to create durable subscriber and instead creates normal subscriber. Is it not possible to create durable subscribers using polling consumer? public class OutQWaitingProcesser implements Processor { @Override public void process(Exchange exchange) throws Exception { Endpoint