message-queue

RabbitMQ — Why does the wrong subscriber get a published message?

六月ゝ 毕业季﹏ 提交于 2019-12-11 04:12:59
问题 I have two services, Manager and Collector . Manager is subscribed to Queue COLLECTED_USER with routingKey user.collected and invokes a UserCollected handler. Collector is subscribed to Queue COLLECT_USER with routingKey user.collect and invokes a CollectUser handler. There can be multiple collectors so I have set exclusive to false (see below for code). There are also other services that listen for events like user.created , user.updated , user.deleted In addition there are services that

Apache MQ - JMS message selector

允我心安 提交于 2019-12-11 03:29:36
问题 I need some help to fetch all the messages for a particular queue which has a particular property on it. The problem here is I need to match the JMS header property process with processName .As the message can have the value for process as upper or lowercase but processName always has a value which is uppercase. I can NOT use equalsIgnorecase here like : StringJMSCriteriaBuilder("process").equalIgnorecase(processName); As there is no such method in IJMSSelectorCriteriaBuilder interface. Below

What distributed message queues support millions of queues?

北慕城南 提交于 2019-12-11 02:40:07
问题 I'm looking for a distributed message queue that will support millions of queues, with each queue handling tens of messages per second. The messages will be small (tens of bytes), and I don't expect the queues to get very long--on the order of tens of messages per queue at maximum, but when the system is humming along, the queues should stay fairly empty. I'm not sure how many nodes to expect in the cluster--probably depends on the specific solution, but if I had to guess, I would say ten

Listening to new enqueued messages using WCF Service

杀马特。学长 韩版系。学妹 提交于 2019-12-11 01:57:45
问题 My message-queue is managed by IBM WebSphere MQ and I would like to be able to listen for new enqueued messages using a WCF service. Each new message should trigger a call to my service with the new message as a parameter. Do you know any way about how to create such a service and host it? 回答1: If you are using WebSphere MQ v701 or above, then you can use the WebSphere MQ Custom channel for WCF. Using the custom channel you can build and host services. You can find more details and samples

Measuring broadcast message latency using system clock, good idea?

谁说胖子不能爱 提交于 2019-12-11 01:26:41
问题 I want to measure broadcast message latency over our message broker on a 1GB LAN. Messages are transmitted in a pub sub fashion, one publisher, many consumers. The producer timestamps each message using the system clock (DateTime.Now in C#) and consumers measure latency by subtracting the timestamp on the message from DateTime.Now. double latency = (DateTime.Now - msg.NMSTimestamp).TotalMilliseconds; All of the boxes on our LAN sync their time via NTP once an hour yet I'm seeing significant

mqjbnd05 error when deploying app on websphere

最后都变了- 提交于 2019-12-11 01:06:30
问题 I have a fresh install of Wesphere 6.1 Fixpack 23. I have an app deployed that requires an MQSeries JMS Queue. I set up an MQSeries provider-based request and reply queue and an MQSeries provider-based queue connection factory. When the deployed app tries to access the queue, I receive the following error. Any assistance would be appreciated. Thanks! [5/28/09 10:33:42:538 EDT] 00000033 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: espaapp.

JMSWMQ2020: Failed to connect to queue manager

十年热恋 提交于 2019-12-11 00:21:44
问题 I'm trying to connect to queue manager using ccdt.tab file. Here is what I tried: String CHANNEL_TABLE_PATH = "/usr/dev/ccdt.tab"; URL chanTableUrl = new URL("file://"+ CHANNEL_TABLE_PATH); connectionFactory.setCCDTURL(chanTableUrl); connectionFactory.setQueueManager("*"); MQQueueConnection connection = (MQQueueConnection) connectionFactory.createQueueConnection(); connection.start(); Here is what inside of my ccdt.tab DIS CHL(*) QMNAME CONNAME Display Channel details. CHANNEL(C.TEST.1)

JMS Job queue with Grails

女生的网名这么多〃 提交于 2019-12-10 21:30:36
问题 I am looking for some grails plugin which would do the following Submission of jobs(Calling a remote method asynchronously) Broker should be running from different host Which plugin fits best for this scenario? 回答1: Have you tried the JMS plugin? 来源: https://stackoverflow.com/questions/9436137/jms-job-queue-with-grails

How to specify custom JMS Message Listener in Spring Xml

风流意气都作罢 提交于 2019-12-10 20:47:47
问题 I am new to JMS and had a requirement to batch requests for a listener to handle. Link: http://sleeplessinslc.blogspot.in/2010/04/batchmessagelistenercontainer-using.html gives a good solution. I am stuck in implementing the same. Instead of using the default container, I overwrote the container-class to use this new class: <jms:listener-container container-class="org.bsnyder.spring.jms.listener.BatchMessageListenerContainer" acknowledge="transacted"> <jms:listener destination="CHANDRA

ASP.NET Application log while code is running / progress bar

青春壹個敷衍的年華 提交于 2019-12-10 19:29:35
问题 I’m building a OCR scanning module in my ASP forms webapplication. As you may know a operation like that can take some time. Therefor I’m using a background service application that responds to a message queue that runs the code so the user does not even have to stay on the same webpage. What I would like to do is inform the user what is going on while the service is running. If lets say the user uploaded 5 documents I would like to see something like this appear in a literal, label or