message-queue

Working around pre-fetch in Tibco EMS and .NET API

谁说我不能喝 提交于 2019-12-24 07:58:47
问题 All in context of Tibco EMS 5.* and .NET API I've to work along existing model of message processing, in which in a loop: connection is created / open session is created / open message consumer is created receive method is called if message != null then we consume it and either commit or rollback the transaction (on underlying session). System pulls every x sec in that model. I've created a connection factory that assures that only new sessions are created (if the previous session is still in

Is there a messaging system for .NET+Mono with no external dependency?

和自甴很熟 提交于 2019-12-24 04:54:13
问题 I'm looking for a simple messaging system for .NET, that run as a library with no external dependency. The requirements are simple: I'd like to be able to call an external HTTP service, and if that service is offline or not responding for some reason, the system should queue the messages for later or discard previous and keep only the latest message, regular messaging stuff. But I'm looking for something that: Runs on Mono/linux Free/open source Have no external dependency, it should run as

Message bus and Message queue understanding

时光怂恿深爱的人放手 提交于 2019-12-24 04:51:14
问题 I would like to know if my understanding of Message Bus and Message Queue workings is correct. First thing first, I need to clear the naming, a service bus is used interchangeably with message bus ? It is a publisher-subscriber type of system where messages are added let's say to a message collection by any number of publishers and from where any number of subscribers can read, am i right so far ? P1 --- /``````S1 \________ Service Bus Middleware ------+------ S2 / MESSAGE-COLLECTION \_____

RabbitMQ : Create Dynamic queues in Direct Exchange

北战南征 提交于 2019-12-24 03:08:13
问题 I am new to RabbitMQ, I just went through Rabbitmq docs (Routing). I am quite confused between Exchange with routing keys. My requirement is , I want to create multiple queues dynamically. Please refer below diagram. Ex. Lets say If producer create message for consumer c3, then it should go to Exchange and route to Queue 3 only and consume by C3 only. At present I only require 3 Queues in future this count may increase. so how to deal with this situation too. Note : I refer this blog Exchange

ActiveMQ: One Pending Message but Queue is empty

两盒软妹~` 提交于 2019-12-24 02:49:46
问题 I have a strange problem with ActiveMQ. I have a queue that seems to have a pending message, but when I open the queue, there is no message. What is wrong here? Is there really a message pending? How can I bring the message back or at least see the content? Screenshot of the pending message: Screenshot when opening the queue, which is empty: EDIT: Just found these two bugs of ActiveMQ 5.6.0. Can this be the source of that problem? Incorrect reporting of pendingQueueSize of durable subs after

Is there a way to specify a different Error Queue when using EasyNetQ.Hosepipe?

為{幸葍}努か 提交于 2019-12-24 00:56:47
问题 I recently posted the following question... Custom Error Queue Name when using EasyNetQ for RabbitMQ? ... and was provided with a solution on how to use different, application specific Error Queue names when using EasyNetQ, rather than having all unhandled exceptions go into the default error queue (EasyNetQ_Default_Error_Queue). What I'd now like is to be able to use EasyNetQ.Hosepipe.exe to dump all of the error messages from whichever Error queue I specify, as its default behaviour when

Custom Spring Scope not working for Message Channel

自作多情 提交于 2019-12-23 19:43:21
问题 In spring integration, I am trying to create a Direct Message channel with a custom scope as follows ... <int:channel id="myChannel" scope="validCustomScope" /> <int:service-activator ref="validSericeReference_WithSameValidCustomScope" method="handleMessage" input-channel="myChannel"/> ... However, I am running into an exception .. org.springframework.integration.MessageDeliveryException: Dispatcher has no subscribers for channel Note: this custom scope works for other beans. This issue is

How to achieve distributed processing and high availability simultaneously in Kafka?

情到浓时终转凉″ 提交于 2019-12-23 16:54:52
问题 I have a topic consisting of n partitions. To have distributed processing I create two processes running on different machines. They subscribe to the topic with same groupd id and allocate n/2 threads, each of which processes single stream(n/2 partitions per process). With this I will have achieved load distribution, but now if process 1 crashes, than process 2 cannot consume messages from partitions allocated to process 1, as it listened only on n/2 streams at the start. Or else, if I

how to use postThreadMessage to pass a struct

本小妞迷上赌 提交于 2019-12-23 13:09:09
问题 I want to use windows's message queue facilities to send a struct to another thread. But I find out that the postthreadmessage function only provide two integer parameters, lparam and wparam for me to pass arguments.So I decide to put the address of the struct in lparam. Is this the correct way windows use to pass struct? And I intend to use boost::shared_ptr to hold the address of struct in both the receiver thread and sender thread. I doubt that when the two shared_ptrs goes out of scope,

Weird posix message queue linking issue - sometimes it doesn't link correctly

元气小坏坏 提交于 2019-12-23 10:28:49
问题 When I build the following code, it builds fine. If I change the code to comment out the "while", using the same command line, it does not build (see below) #include <stdio.h> #include <mqueue.h> int main(int argc, char *argv[]) { while (1) { } mq_open("/YouSUCK", O_RDWR | O_CREAT | O_EXCL, S_IRWXU | S_IRWXG, NULL); return 0; } dada@thud:~/RaspberryPI$ gcc -g -Wall -lrt -o mqtest mqtest.c dada@thud:~/RaspberryPI$ #include <stdio.h> #include <mqueue.h> int main(int argc, char *argv[]) { //