jms

Jboss server error while adding JMS queue service

余生长醉 提交于 2019-12-24 10:39:26
问题 I am new to JBoss JMS queue service. Currently, I am working in a production code using JBosss Messaging Server, where several queues have been configured in a separate example-service.xml file All queues are working fine and each queue has it own separate MDB listeners which will consumes all the messages from Queue. However, I am getting following issues: I am not able to browse any of the Queue values using QueueBrowser, even if the queue has some values before it is being consumed by the

Process Messages Sequentially with competing consumers

允我心安 提交于 2019-12-24 09:12:19
问题 Problem: I Receive messages(say orders) on a queue in a particular sequence(FIFO) I have competing consumers on the queue To further add to the complexity, the consumer might be interested in only specific versions of the order depending on its state.(Say version1,version 2 and version5) The order version number is available on the order, but cannot be used for sequencing since my listener might not be interested in all the versions(The consumer might be interested only in versions Say

JMSTemplate check if topic exists and get subscriber count

北慕城南 提交于 2019-12-24 08:58:52
问题 I have been looking for some documentation/example for checking if a dynamically created topic exist and if it does, how to get the subscriber count for the topic. I use following code for sending out message to a topic - jmsTemplate.send(destination, new MessageCreator() { @Override public Message createMessage(Session session) throws JMSException { TextMessage message = session.createTextMessage(); message.setText(commandStr); return message; } }); This code seems to create the topic and

JMSWMQ2013 when connecting from WAS to MQ

你。 提交于 2019-12-24 08:39:44
问题 I am trying to create a JMS connection from WebSphere App Server 7, but keep getting JMSWMQ2013 (with MQ reason code 2035). Clearly this is an authentication problem, and I can see many other similar reports so I have a rough idea of the general problem. I'm awaiting feedback from our operations team as to the exact configuration of the channel, however, in the meantime I have one observation that is quite puzzling. If I use WebSphere's JAAS authentication to provide the userid, then I always

HornetQ - java.lang.NoClassDefFoundError: Lorg/hornetq/core/logging/Logger;

左心房为你撑大大i 提交于 2019-12-24 08:14:28
问题 I am trying to run a simple HornetQ example from a book (HornetQ Messaging Developers Guide) but get error messages. I have not used maven since I wanted to stick close to the example given in the book. The HornetQ Standalone server started normally in command line. I am just trying to send a message to the HonretQ server. package chapter01; import javax.jms.JMSException; import javax.naming.NamingException; public class ECGMessageConsumerProducerExample { public static void main(String[]

Difference between AUTO_ACKNOWLEDGEMENT mode with and without Spring JMS

隐身守侯 提交于 2019-12-24 05:21:47
问题 I am trying to understand how acknowledgement modes work in JMS. I was reading this source and it hugely confused me as it was contradicting what Spring's documentation says. Sources saying one thing: From http://www.javaworld.com/article/2074123/java-web-development/transaction-and-redelivery-in-jms.html A message is automatically acknowledged when it successfully returns from the receive() method. If the receiver uses the MessageListener interface, the message is automatically acknowledged

JMS MQ binding problem

一笑奈何 提交于 2019-12-24 04:17:13
问题 I have this strange issue with a JMS binding on a MQ queue with a MDB The Message-Driven EJB: CrbEventMessageAsynchronousService is unable to connect to the JMS destination: queue.contratto.crb.input.publicQueue . The Error was: javax.jms.JMSException : MQJMS1017 : non-local MQ queue not valid for receiving or browsing> I checked on the QueueManager and the mq queue is defined as local and not as remote as said by the exception. 回答1: It may be that the top-most queue that the application is

JMS Topic Creation in JBoss 5 AS

一笑奈何 提交于 2019-12-24 03:55:14
问题 In Jboss 4, when I deployed an ear with an MDB for a topic that had not been specified in the deployment descriptors, the server would automatically create the topic (after posting a warning saying that topic didn't exist). In Jboss 5, it doesn't seem to automatically create the topics anymore (errors out instead). Is there a configuration option somewhere that would allow automatic topic creation? 回答1: From the JBoss community forums -- This JIRA was added in 5AS. Unfortunately it looks like

Distributed JMS based logging .. falling flat?

﹥>﹥吖頭↗ 提交于 2019-12-24 03:51:40
问题 In our fancy ESB, logging of each request is done via a common infrastructure based on JMS based logging. Here is what happens in a nutshell: service gets a request service prepares some data in a LogData object service calls database time taken for db interaction is captured in LogData object service is ready to send response LogData object is sent to a messaging destination service sends response Very rosey! yes for paper architects. Here is the actual issue: The JMS service provider

GroovyConsole ActiveMQ error: NoClassDefFoundError: Could not initialize class org.apache.activemq.ActiveMQPrefetchPolicy

∥☆過路亽.° 提交于 2019-12-24 03:45:06
问题 I am trying to run a very simple ActiveMQ client script in GroovyConsole. I've included activemq-all-5.5.0.jar and slf4j-api-1.5.11.jar through the Script > Add Jar to ClassPath menu. I see org.apache.activemq.ActiveMQPrefetchPolicy in the activemq jar, yet I am getting the exception below. Here is the script: import org.apache.activemq.* import org.apache.activemq.command.* import javax.jms.* // // // def connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616") def