activemq

Wildfly 15 external Artemis ActiveMQ destination not found

馋奶兔 提交于 2019-12-25 00:17:29
问题 I have a wildfly 15 with an external ActiveMQ and use a resource adapter. But i cannot get a connection to a queue to write on. But I can listen at the queue. here is my configuration: ironjacamar.xml: <admin-objects> <admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:jboss/activemq/queue/HELLOWORLDMDBQueue1234"> <config-property name="PhysicalName"> activemq/queue/HELLOWORLDMDBQueue </config-property> </admin-object> </admin-objects> ra.xml: <adminobject>

Wildfly Artemis ActiveMQ lookup fail

▼魔方 西西 提交于 2019-12-25 00:15:58
问题 My lookup for a que fail. The que is registered in the wildfly and configured with ironjacamar.xml wildfly output on start: Bound JCA AdminObject [java:jboss/activemq/queue/HELLOWORLDMDBQueue] ironjacamar config: <admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:jboss/activemq/queue/HELLOWORLDMDBQueue"> <config-property name="PhysicalName"> activemq/queue/HELLOWORLDMDBQueue </config-property> </admin-object> ra.xml: <adminobject> <adminobject-interface>javax

WAITING threads issue in wso2esb

 ̄綄美尐妖づ 提交于 2019-12-24 19:23:49
问题 Hi am working on wso2esb and using Active MQ for message queues. After around 3 weeks of usage ESB server was hanging and with the help of JMX monitoring of ESB i found that they are a huge number of java threads are in WAITING state. [EsbMonitoring] ***************** java Threads Attributes ********************* [EsbMonitoring] ThreadCount :8873 [EsbMonitoring] DaemonThreadCount :104 [EsbMonitoring] PeakThreadCount :8992 [EsbMonitoring] TotalStartedThreadCount :16086123 Initially when we

Is it possible to retrieve more than 400 messages from ActiveMQ queue via Jolokia API?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 19:20:02
问题 I have an error queue in ActiveMQ, which is populated by Apache Camel's onException error handler. There could be thousands of messages in this queue. Instead of using the ActiveMQ web console, I am building a custom web admin to integrate several other statistics from other components as well. Thus, I wanted to include the statistics from ActiveMQ as well. ActiveMQ version: 5.14.3 I have looked at Jolokia JMX API, and its operations. For instance, I have the following payload to the broker's

How to send messages to multiple jms (active mq) brokers from the same application?

前提是你 提交于 2019-12-24 19:02:41
问题 I've up 2 applications(servers) with embedded active mq instances locally. Now I need to create a client for this servers. I've read the asnswer: https://stackoverflow.com/a/43401330/2674303 and try to repeat this: I registered 2 connection factories: @Bean @Primary public ConnectionFactory bitFinexExchangeJmsConnectionFactory() { return new ActiveMQConnectionFactory("tcp://localhost:61616"); } @Bean public ConnectionFactory hitbtcExchangeJmsConnectionFactory() { return new

springboot+activemq手动处理

匆匆过客 提交于 2019-12-24 15:50:37
1. springboot框架中activemq手动连接处理 2. activemq事务性分析 记录一个最近使用activemq的使用总结,场景是activemq异步处理一个高访问量的接口,不能实时入库,而改用定时处理消息,隔断时间触发处理。 手动建立MQ连接 上图已经对activemq进行过实体配置了,因此,下面部分代码,是直接取用的ActiveMQConnectionFactory工厂,也可以再次使用用户名密码,建立连接,这里不贴代码了,网上一搜一大堆 /**直接引用 ActiveMQConnectionFactory工厂建立连接**/ @Autowired private ActiveMQConnectionFactory activeMQConnectionFactory; public void receiveQueue(){ Connection connection = null; Session session = null; try { // 通过工厂创建一个连接 connection = activeMQConnectionFactory.createConnection(); // 启动连接 connection.start(); // 创建一个session会话 session = connection.createSession(Boolean.TRUE,

Using the Log4J JMSAppender with ActiveMQ

放肆的年华 提交于 2019-12-24 15:28:59
问题 I am trying to produce a proof of concept shipping logging from Log4J through JMS using the log4J JMSAppender. I have tried ActiveMQ and the example supplied with it. I have torn this example apart, and made it more generic and compatible with multiple platforms. It looks like I have it all plumbed up OK as I can see a connection to the ActiveMQ happening, but the code hangs when I get the InitialContext ( with -Dlog4j.debug set the ActiveMQ client classes seem to invoke log4J and load the

Apache.NMS.ActiveMq ConnectionFactory ignores prefetch set in broker URL

早过忘川 提交于 2019-12-24 13:43:16
问题 This is the URL we're using to create/attach to our queue: tcp://localhost:61616?jms.prefetchPolicy.queuePrefetch=1 This defaults the queuePrefetch to 1000: IConnectionFactory connectionFactory = new ConnectionFactory(queueServer); connectionFactory = new SingleConnectionFactory(connectionFactory) { ReconnectOnException = true }; If we use the following code it sets it appropriatly: IConnectionFactory connectionFactory = new ConnectionFactory(queueServer) { PrefetchPolicy = new PrefetchPolicy

logstash with activeMQ/stomp

时间秒杀一切 提交于 2019-12-24 13:15:19
问题 all. I am using logstash-1.4.2 to consume messages stored in my activeMQ(with stomp plubgin). in my acitveMQ.xml config file, I have the line: <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> when I run my logstash, I have this error: C:\logstash\logstash-1.4.2\bin>logstash agent -f logstashconfig.conf +---------------------------------------------------------+ | An unexpected error occurred. This is probably a bug. | |

How to setup JMS bridge to ActiveMQ on Weblogic 11g

▼魔方 西西 提交于 2019-12-24 11:53:32
问题 I'm novice guy in JCA and JMS parts of Java EE stack, and now I'm struggling with JMS bridge configuration between two JMS providers (ActiveMQ 5.9.1 -> Weblogic 11g 10.3.5), and I need some help to understand all the moving parts and required configuration elements. What I've done already: JMS server configured on Weblogic 11g node Configured Foreign Server - AMQ connection factory, and source queue objects bound to the local JNDI (OK: conn. factory and queue objects visible in server jndi