jms

single jms consumer for multiple jms servers

假如想象 提交于 2021-01-28 21:52:33
问题 I am using a distributed jms queue and weblogic is my app server. There are three jms servers deployed in my clustered enviroment. The producers just send the message using name of queue jndi lookup 'udq' for example. Now I have associated a consumer for each jms server and I was able to consume the message, no problem so far. Here is question, can I have a single consumer to consume the messages from the 3 jms servers. The weblogic allows jndi naming for destination lookup with following

SpringJMS - How to Disconnect a MessageListenerContainer

可紊 提交于 2021-01-28 08:27:58
问题 I want to disconnect the DefaultMessageListenerContainer for a queue. I am using dmlc.stop(), dmlc.shutdown(). At the time of conneciton 5 consumer threads get connected to queue. when I try to disconnect, 4 of the consumers get disconnected, but 1 consumer remains connected. (See screenshot at the end of thread). Environment 1. ActiveMQ with AMQP 2. SpringJMS with ApacheQpid Problem After calling destroy and stop method, there's still one consumer connected to the queue. Required Solution I

Connect to Websphere Liberty jmsServer from remote application server

坚强是说给别人听的谎言 提交于 2021-01-27 16:51:15
问题 Is it possible to connect to a queue deployed in Websphere Liberty from a remote application server? I use the free version of the product (Liberty 8.5.5.7). I configured connection factory in server.xml: <messagingEngine> <queue id="Queue1" receivedAllowed="false" maxMessageDepth="1000"/> </messagingEngine> <jmsQueueConnectionFactory jndiName="qcf/ConnectionFactory" connectionManagerRef="ConMgr2"> <properties.wasJms nonPersistentMapping="ExpressNonPersistent" persistentMapping=

Connect to Websphere Liberty jmsServer from remote application server

限于喜欢 提交于 2021-01-27 16:47:05
问题 Is it possible to connect to a queue deployed in Websphere Liberty from a remote application server? I use the free version of the product (Liberty 8.5.5.7). I configured connection factory in server.xml: <messagingEngine> <queue id="Queue1" receivedAllowed="false" maxMessageDepth="1000"/> </messagingEngine> <jmsQueueConnectionFactory jndiName="qcf/ConnectionFactory" connectionManagerRef="ConMgr2"> <properties.wasJms nonPersistentMapping="ExpressNonPersistent" persistentMapping=

JMS connection not connecting to remote JBoss but connects local instance

南楼画角 提交于 2021-01-07 01:09:10
问题 I developed a simple JMS connection tester application to test connectivity of remote JMS queue. It is a jar file. It works perfectly when executing locally on my pc connecting to JBoss instance running on same pc (i.e. localhost). But when I copy same jar file onto the windows test server (Windows Server 2008 R2 Standard) and run it from there, it gives following exception. The JBoss instance (jboss-eap-7.0) in this case is running on another Linux server. Here is my code below. I have

JMS connection not connecting to remote JBoss but connects local instance

♀尐吖头ヾ 提交于 2021-01-07 01:04:27
问题 I developed a simple JMS connection tester application to test connectivity of remote JMS queue. It is a jar file. It works perfectly when executing locally on my pc connecting to JBoss instance running on same pc (i.e. localhost). But when I copy same jar file onto the windows test server (Windows Server 2008 R2 Standard) and run it from there, it gives following exception. The JBoss instance (jboss-eap-7.0) in this case is running on another Linux server. Here is my code below. I have

How to get queue size (depth) in Artemis

一个人想着一个人 提交于 2020-12-15 06:39:22
问题 Using a Java client API, how can I get the queue size in a remote ActiveMQ Artemis 2.4.0 broker? 回答1: Such feature as stats belongs to the management API. It can be accessed over HTTP (jolokia), JMX or JMX via the messaging API. There is an example in the official documentation for users persistent enough to read it. I will recite it here for convenience. ClientSession session = ... ClientRequestor requestor = new ClientRequestor(session, "activemq.management"); ClientMessage message =