Messaging refers to the design pattern whereby discrete messages are used for communication between objects or processes. Messages can be simple data, complex data structures, or even code. This pattern is often used for asynchronous or parallel computing.
Questions tagged [messaging]
2583 questions
8
votes
1 answer
Java JMS Messaging
I have a working example of sending message to server and server receiving it via qpid messaging. Here is simple hello world to send to server :
http://pastebin.com/M7mSECJn
And here is server which receives requests and sends response(the current…

London
- 14,986
- 35
- 106
- 147
8
votes
3 answers
Any reason why I shouldn't use couchdb for message passing or realtime activity streams?
While using ampq or xmpp (rabbitmq or ejabbered that could have couchdb as backends) seems like a good fit to deliver real time updates about friend state in a social gaming platform where updates are small but frequent, I can't help but think why…

Up.
- 959
- 11
- 20
8
votes
3 answers
JMS - How do message selectors work with multiple queue and topic consumers?
Say you have a JMS queue, and multiple consumers are watching the queue for messages. You want one of the consumers to get all of a particular type of message, so you decide to employ message selectors.
For example, you define a property to go in…

Stephen Harmon
- 835
- 2
- 9
- 15
8
votes
4 answers
Akka/Java: Handling multiple message types inside a custom actor?
To implement your own custom actor in Akka (Java binding) you extend the UntypedActor base class. This requires you to define your own onReceive(...) method:
@Override
public void onReceive(Object message) {
// TODO
}
The problem at hand is…

smeeb
- 27,777
- 57
- 250
- 447
8
votes
3 answers
How to implement consumer-producer with multiple consumers and multiple queues
Assume there are 1 producer P and 2 consumers C1 and C2. And there are 2 queues Q1 and Q2, both with a specific capacity.
P will produce items and put it into Q1 and Q2 alternately. Item is produced for specific consumer and cannot be consumed by…

user2440712
- 719
- 2
- 9
- 16
8
votes
1 answer
Send an object using RabbitMQ
I Understand that this question duplicates question at
using rabbitmq to send a message not string but struct
if to do this using the first way
first way
I have the following trace:
java.io.EOFException
at…

Nikitin Mikhail
- 2,983
- 9
- 42
- 67
8
votes
3 answers
Apache Kafka: consumer state
I read the documentation on the Kafka website but after trying to implement a complete minimal example ( producer --> kafka --> consumer) it's not very clear to me how the "consumer state", the offset needs to be handled.
Some info
I'm using the…

Andrea
- 2,714
- 3
- 27
- 38
8
votes
1 answer
How to inject a message selector to message listener bean in jms-spring integration?
I'm working with JMS API (with HornetQ) and i'm using spring beans for message listener container and message listener:

Arya
- 2,809
- 5
- 34
- 56
8
votes
3 answers
When to use persistence with Java Messaging and Queuing Systems
I'm performing a trade study on (Java) Messaging & Queuing systems for an upcoming re-design of a back-end framework for a major web application (on Amazon's EC2 Cloud, x-large instances). I'm currently evaluating ActiveMQ and RabbitMQ.
The plan is…

littleK
- 19,521
- 30
- 128
- 188
8
votes
1 answer
Capture all Windows Messages
I want to leverage machine learning to model a user's intent and potentially automate commonly performed tasks. To do this I would like to have access to a fire-hose of information about user actions and the machine state. To this end, it is my…

Marcus
- 97
- 1
- 2
- 8
7
votes
1 answer
Using APNs in a messaging app
I'm working on a messaging app (something like WhatsApp) and I have a dilemma about implementing it's main functionality - sending message from client1 to client2.
The thing is I'm using a centralized server design, where clients uses…

Eyal
- 10,777
- 18
- 78
- 130
7
votes
3 answers
Is logging to a message queue a good idea?
Currently I'm facing the problem to aggregate several log files from a distributed system.
But since most of the applications are Java applications which use both log4j and all of them use JMS I thought about logging directly into a message queue…

Daniel Rikowski
- 71,375
- 57
- 251
- 329
7
votes
2 answers
Android, Handler messaging
I have some very simple code to do with handlers:
Handler seconds=new Handler() {
@Override
public void handleMessage(Message msg) {
bar.incrementProgressBy(5);
tView1.setText("r:"+msg);
}
};
And my thread:
Thread…

Ryan
- 9,821
- 22
- 66
- 101
7
votes
2 answers
Facebook messenger webhook not sending data for users that are not associated with the app
So this has been such an annoying issue I've been having with facebook.
We :
created a messenger app
verified the web-hook
submitted the app for review
got approval from Facebook
Everything works perfectly if we use the developers and users…

Stephen Romero
- 2,812
- 4
- 25
- 48
7
votes
2 answers
Where to store events in a distributed system which uses event sourcing?
Given you have multiple systems, which are integrated by events, and all of them are using event sourcing. Where do you store the events?
In my case I have three systems:
A website, which is a shop
A backend for the Website to manage customers,…

Alebo
- 327
- 2
- 7