jms

XMS.NET hanging indefinitely on factory.CreateConnection(“username”, null);

梦想与她 提交于 2020-01-06 03:35:28
问题 I am trying to connect to an existing JMS queue with a .NET client. I know the queue is working, I already browsed it using IBM MQ Explorer. In the following code, the call to factory.CreateConnection keeps hanging - it does not jump to the next line, in does not show any error message. It even doesnt consume any CPU. Are there any options that I should try to get it working (or at least make it show me an error message of any kind)? private static IConnectionFactory GetConnectionFactory() {

How to pause a queue in Activemq

蹲街弑〆低调 提交于 2020-01-06 03:24:46
问题 I need to pause a queue in Activemq 5.13.2 inside an application and according to this post https://stackoverflow.com/a/32165140/1458556 it's possible with version 5.12 but I don't know how to implement it. Any Java code samples would be great. @Test public void testPauseQueue() throws Exception { JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"); JMXConnector jmxc = JMXConnectorFactory.connect(url); MBeanServerConnection conn = jmxc

Android application connected to an ActiveMQ server

时间秒杀一切 提交于 2020-01-05 08:22:38
问题 I wanted to know if it is possible to create an Android Application that sends and receives messages through the ActiveMQ server? if its been done can you show me some examples perhaps? Thank you for taking the time to read 回答1: you can use Stomp Java lib to consume from queues https://github.com/fusesource/stompjms here an example of android app that talk to activemq https://github.com/jsherman1/android-mqtt-demo https://dzone.com/articles/android-mqtt-activemq http://activemq.apache.org

Android application connected to an ActiveMQ server

ぐ巨炮叔叔 提交于 2020-01-05 08:22:08
问题 I wanted to know if it is possible to create an Android Application that sends and receives messages through the ActiveMQ server? if its been done can you show me some examples perhaps? Thank you for taking the time to read 回答1: you can use Stomp Java lib to consume from queues https://github.com/fusesource/stompjms here an example of android app that talk to activemq https://github.com/jsherman1/android-mqtt-demo https://dzone.com/articles/android-mqtt-activemq http://activemq.apache.org

ActiveMQ embedded broker topic-to-queue bridge with XML config

隐身守侯 提交于 2020-01-05 07:49:06
问题 My Goal + Progress I'm interested in using ActiveMQ to publish a message to a topic and have it bridge to multiple queues. I have managed to achieve this with the command-line broker by providing an xml-config containing a composite topic: <destinationInterceptors> <virtualDestinationInterceptor> <virtualDestinations> <compositeTopic name="LOCAL.EC.T"> <forwardTo> <queue physicalName="LOCAL.EC.Q.1" /> <queue physicalName="LOCAL.EC.Q.2" /> </forwardTo> </compositeTopic> </virtualDestinations>

Cannot convert object of type to JMS message. Supported message payloads are: String, byte array, Map<String,?>, Serializable object

怎甘沉沦 提交于 2020-01-05 05:35:09
问题 I am developing Spring + ActiveMQ + JMS example. In this example, I am facing the below error: I tried with Many options but not working at all. I am looking to implement the following: 1) Queue should be keep reading messages (either using the Converter or listener) 2) Based on the InstructionMessage type I have to take decision on where to send it or not. The code uploaded at : https://github.com/test512/spring-mvc-jms-tutorials Sending person InstructionMessage [instructionType=10,

WAS Liberty - EJB - bean does not have a public constructor that does not take parameters & java.lang.NoClassDefFoundError

丶灬走出姿态 提交于 2020-01-05 04:27:06
问题 I am experiencing issue when migrating from WAS 7.0 to WAS Liberty Base. I have deployed EAR file in WAS Liberty Base. When I add the mdb-3.2 to server.xml for JMS Messaging, I get the following run-time error on EJB MDB Bean. [ERROR ] CNTR5007E: The com.companyname.appname.AdminMDBBean bean class for the AppEAR#AppEJB.jar#AdminMDBBean bean does not have a public constructor that does not take parameters. [ERROR ] CNTR4002E: The AppEJB.jar EJB module in the AppEAR application failed to start.

How to continuously read JMS Messages in a thread and achnowledge them based on their JMSMessageID in another thread?

Deadly 提交于 2020-01-05 04:13:28
问题 I've written a Continuous JMS Message reveiver : Here, I'm using CLIENT_ACKNOWLEDGE because I don't want this thread to acknowledge the messages. (...) connection.start(); session = connection.createQueueSession(true, Session.CLIENT_ACKNOWLEDGE); queue = session.createQueue(QueueId); receiver = session.createReceiver(queue); While (true) { message = receiver.receive(1000); if ( message != null ) { // NB : I can only pass Strings to the other thread sendMessageToOtherThread( message.getText()

Spring JMS - IBM MQ has open input count issue

霸气de小男生 提交于 2020-01-05 03:59:10
问题 We are using Spring JMS to connect IBM MQ in that the MQ open input count keep on increase.is there any solution can we reduce the open input count. we are using concurrent connection as 1 only. 回答1: The IBM MQ connection handle behaves differently with Spring configuration. If you are using the CachingConnectionFactory that spring provides, please read my answer in the below thread. JMS connections exhausted using WebSphere MQ Please add more details to better understand the issue. The

When should I use `REQUIRED` vs `NOT_SUPPORTED` as a the value of @TransactionAttribute for an MDB?

故事扮演 提交于 2020-01-04 08:03:14
问题 I know about container managed transactions(CMT). I also know about the different possible values of the enumerated type TransactionAttributeType . Since the client never calls a MDB directly, the attribute types other than the REQUIRED and NOT_SUPPORTED do not make sense for MDB's as there is no client initiated transaction to join to. So when should I annotate the onMessage() method of an MDB with REQUIRED vs NOT_SUPPORTED ? What will be the default behavior in none of the two options is