jms

How do I set up a mock queue using mockrunner to test an xml filter?

橙三吉。 提交于 2019-12-23 12:17:24
问题 I'm using the mockrunner package from http://mockrunner.sourceforge.net/ to set up a mock queue for JUnit testing an XML filter which operates like this: sets recognized properties for an ftp server to put and get xml input and a jms queue server that keeps track of jobs. Remotely there waits a server that actually parses the xml once a queue message is received. creates a remote directory using ftp and starts a queue connection using mqconnectionfactory to the given address of the queue

Why does Eclipse skip lines when I debug JBoss?

别说谁变了你拦得住时间么 提交于 2019-12-23 12:17:19
问题 I am trying to debug web service call which uses JMS in the background.I have JBoss running in debug mode. What happens is that when I press F6 in Eclipse (to execute current line) it skips certain lines. I have this method: @Override public void log(MsgPayload payload) { 1 Date startTime = new Date(); logger.info("Publishing with BufferedPublisher.java start time:"+startTime); 3 publisher.send(payload); Date endTime = new Date(); logger.info("Publishing with BufferedPublisher.java end time:"

How to know if a listener gets the message in JMS?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 11:57:05
问题 I'm using Spring JMS and ActiveMQ to send message from one sender to multiple listeners asynchronously. All listeners subscribe to an ActiveMQ Topic so that the message can be delivered to them. I want to know if a particular listener gets the message from the sender. Is there a way to achieve this? Edit: Added the JMS sender and listener classes This is my message sender class: public class CustomerStatusSender { private JmsTemplate jmsTemplate; private Topic topic; public void

Destination is mandatory

余生颓废 提交于 2019-12-23 11:57:03
问题 I got following error while deploying my ear in wildfly 8.1.0 server 1)Error: Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory", "jboss.deployment.subunit.\"wildfly.ear\".\"wildfly- ejb.jar\".component.ReRattingMDB.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"wildfly.ear\".\"wildfly-ejb.jar\".component.ReRattingMDB.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory 2

Message Queue with 'Message Barrier' Feature?

拜拜、爱过 提交于 2019-12-23 11:33:12
问题 Is there a message queue implementation that allows breaking up work into 'batches' by inserting 'message barriers' into the message stream? Let me clarify. No messages after a message barrier should be delivered to any consumers of the queue, until all messages before the barrier are consumed. Sort of like a synchronization point. I'd also prefer if all consumers received notification when they reached a barrier. Anything like this out there? 回答1: I am not aware of existing, widely-available

Using Ruby, not JRuby, in JMS queue?

浪子不回头ぞ 提交于 2019-12-23 10:51:14
问题 What is the easiest way of pushing a message to a JMS queue (hosted by Tibco EMS) using Ruby, not JRuby? 回答1: Stomp is a mechanism that allows arbitrary clients to attach to Stomp message brokers. StompConnect turns JMS providers into Stomp brokers, including Tibco EMS (not Tibco RV). I'm not sure if this is the absolute easiest; other options would include using Tibco EMS's C++ client and interfacing it using a Ruby FFI mechanism. I don't know which would be the "best". 来源: https:/

Apache Camel JMS - Exceptions not returned to caller with request/reply

为君一笑 提交于 2019-12-23 09:43:05
问题 I created a simple request/reply setup with Apache Camel and JMS. Everything works fine - calls are dispatched to the server side service and results are returned to the client. Only when there is an exception on the server side this exception will not be returned to the caller. The exception appears on the server and the client receives a timeout. I would like to receive the exception on the client side. As far as I understood the available docs that what I want should be the default

When sending XML to JMS should I use TextMessage or BytesMessage

依然范特西╮ 提交于 2019-12-23 07:42:42
问题 I have found some quite conflicting information on the web and I think that each different JMS provider may also alter the answer too. I'm trying to understand when sending XML into a JMS system (e.g. ActiveMQ) whether I should use a BytesMessage : I can guarantee that the XML is serialized correctly and the preamble will match the actual encoding. Furthermore I can be sure that the client will be able to get the raw representation correctly. TextMessage : There are APIs in many of the queue

ActiveMQ AMQP with JMS transformer leveraging spring Integration

怎甘沉沦 提交于 2019-12-23 05:37:07
问题 I am trying to get a barebones application same up and running leveraging ActiveMQ's AMQP with the JMS transformer. My Client library is Spring Integration, however, I cannot get a basic sample up and running in this configuration. details on ActiveMQ's JMS transformer over AMQP: http://activemq.apache.org/amqp.html main test app @IntegrationComponentScan @SpringBootApplication public class SpringCloudStreamJmsActivemqSenderExampleApplication implements CommandLineRunner { @Bean public

How to delay a JMS message in queue before a listener receives it using camel?

北城余情 提交于 2019-12-23 05:29:31
问题 I am trying to delay a message to be in queue for few seconds. But when I use camel delay option, it is not delaying in queue, instead it is immediately consumed, and delaying in the route path. How can we delay messages so that they will be there in queue for few seconds? My spring with camel configuration looks like below. <bean id="jms" class="org.apache.camel.component.jms.JmsComponent"> <property name="connectionFactory" ref="jmsConnectionFactory" /> </bean> <camelContext id=