message-queue

Can I delete a message from a queue of ActiveMQ in c# code?

ぃ、小莉子 提交于 2019-12-25 01:59:04
问题 I want to set a unique guid for each message in message head, then if I want, I could delete a specific message if I want to. Is there any api in NMS could help me deleting the message? I am using ActiveMQ 5.9.0 and NMS 1.6.1 回答1: Yes, although only if that destination has no active consumers. You can do something like this: protected static void DeleteDestination() { IConnectionFactory factory = new ConnectionFactory(ReplaceEnvVar(connectionURI)); using (Connection connection = factory

Basic window creation

六眼飞鱼酱① 提交于 2019-12-25 00:15:49
问题 I have a problem handling a Windows window, even though I did it this way once before and it worked fine. After reading through the most common suggestions for this problem, it still resides. Could someone tell me why Input-handling is broken? Intended Behaviour: create a window titled 'FirstTry' Make its background black, using PatBlt Show a message box when the main loop is entered the first time, and after pressing 'w'. Close the window when pressing either Alt+F4, Escape, or the Close

Kafka as a data store for future events

只谈情不闲聊 提交于 2019-12-24 16:38:56
问题 I have a Kafka cluster which receives messages from a source based on data changes in that source. In some cases the messages are meant to be processed in the future. So I have 2 options: Consume all messages and post messages that are meant for the future back to Kafka under a different topic (with the date in the topic name) and have a Storm topology that looks for topics with that date's name in it. This will ensure that messages are processed only on the day it's meant for. Store it in a

Is it possible to define a schema for Google Pub/Sub topics like in Kafka with AVRO?

戏子无情 提交于 2019-12-24 15:54:42
问题 As far as I know, we can define AVRO schemas on Kafka and the topic defined with this schema will only accept the data matching with that schema. It's really useful to validate data structure before accepting into the queue. Is there anything similar in Google Pub/Sub? 回答1: Kafka itself is not validating a schema, and topics therefore do not inherently have schemas other than a pair of byte arrays plus some metadata. It's the serializer that's part of the producing client that performs the

Rebus subscriber-publisher system. Process message only by single subscriber

浪尽此生 提交于 2019-12-24 15:37:58
问题 I have system with one publisher several subscribers. But some messages should be processed only by single subscriber. In my case publisher sends message about changing data in database, all subscribers has access to the same database, but I don't need them all change the same data. How can this be accomplished using rebus? PS. Forgot to mention. I can't subscribe to the message only with one subscriber, because subscriberss can go online/offline all the time. 回答1: But some messages should be

ProcessMessages on OnShow Event c++ builder

一世执手 提交于 2019-12-24 14:52:10
问题 I'm using c++ builder (bcb6) and on: FormShow event there is: Application->ProcessMessages I would like to know what exactly the responsibility of: Application->ProcessMessages What exactly it did? and when we shall use by that? when it can cause exp.? Thanks! 回答1: The BDS 2006 IDE help states for Application->ProcessMessages this: Interrupts the execution of an application so that it can process the message queue. Call ProcessMessages to permit the application to process messages that are

How can I update my weblogic JMS queue's target and subdeployment to default and AdminServer?

烈酒焚心 提交于 2019-12-24 13:05:12
问题 I have a problem identical to this question: JNDI lookup failing when looking up JMS queue in WebLogic 10.3.5 However, I can't figure out how to actually implement the solution. It seems simple enough to match the subdeployment and target to the same for both, but it isn't for me: If I change the connectionfactory's subs and target, I get the same error as i used to get on the queue, on the connectionfactory also Default targetting is not an option for queues, only connectionfactories. So how

Bull Queue is not getting completed

浪尽此生 提交于 2019-12-24 11:27:39
问题 Am new to Bull.I have tried running bull based on their documentation code. The Process are starting but my job is not getting completed, or am not sure whether its triggering complete event or not? Am not sure where am making a mistake Attaching my code below const Queue = require('bull'); const myFirstQueue = new Queue('my-first-queue', { redis: { port: Config.redis.port, host: Config.redis.host, password: Config.redis.password }, }); (async function ad() { const job = await myFirstQueue

IPC message queues how to send a vector of pairs

对着背影说爱祢 提交于 2019-12-24 11:21:13
问题 I'm trying to send and receive a message between 2 processes the struct as follows struct _st{ long _var1; int _var2; int _var3; int _var4; int _var5; vector <pair<int,int> > _var6; }; and my sending code is send_val = msgsnd(msgqid, &message, sizeof(message), !IPC_NOWAIT); and i receive it this way rec_val = msgrcv(msgqid, &message, sizeof(message), 0, !IPC_NOWAIT); when i assign my _var6 from the received message to another variable and print it's values i get garbage. How can i send and

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