messaging

Signal a rollback from a JMS MessageListener

孤人 提交于 2019-12-03 02:16:06
I've been working with JMS and ActiveMQ. Everything is working wonders. I am not using spring, nor can I. The interface javax.jms.MessageListener has only one method, onMessage . From within a implementation, there is a chance an exception will be thrown. If in fact an exception gets thrown, then I say the message wasn't properly processed and needs to be re-tried. So, I need ActiveMQ to wait for a little while and then, retry. i.e. I need the thrown exception to rollback the JMS transaction. How can I accomplish such a behaviour? Maybe there is some configuration in ActiveMQ I wasn't able to

API to determine cell carrier? [closed]

此生再无相见时 提交于 2019-12-03 01:56:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Is there a free API or some other way to determine what carrier a cell phone number is registered with? I'd like my application to broadcast text messages without them picking their carrier from a list. UPDATE: Interestingly, a coworker found the answer: http://developer.whitepages.com/ UPDATE2: Well the

Push Notification vs. Web Sockets for implementing a real-time chat app?

独自空忆成欢 提交于 2019-12-03 01:13:59
I'm looking into building a real-time chat app for iPhone (but this question applies to Android and other devices as well) Basically I want the app to receive realtime messages while it's open as well as while it's closed, just like the iPhone's own "Message" app. When it's closed I can use the native push notification services like APNS, and when the app is open, I can run my own websockets server or use 3rd party providers like PubNub or Pusher, which is what I've been doing actually. Then I wondered: Why can't I completely rely on APNS for the real-time messaging, both while the app is open

Are Erlang/OTP messages reliable? Can messages be duplicated?

痴心易碎 提交于 2019-12-03 00:42:04
问题 Long version: I'm new to erlang, and considering using it for a scalable architecture. I've found many proponents of the platform touting its reliability and fault tolerance. However, I'm struggling to understand exactly how fault-tolerance is achieved in this system where messages are queued in transient memory. I understand that a supervisor hierarchy can be arranged to respawn deceased processes, but I've been unable to find much discussion of the implications of respawning on works-in

When should I use each of Android's different messaging types?

耗尽温柔 提交于 2019-12-03 00:38:42
I've been working with Android for well over a year now, but I still have trouble determining when different types of messaging/communication between processes/threads should be used. I'm mainly talking about broadcasting Intents, using AIDL for services , using Handlers to send messages and socket communication. Many of these tools can be used to accomplish similar tasks, but which is better suited to particular situations? This is a pretty open ended question, but let me take a shot at describing how I see the intra/inter application communication working best. One of the key aspects of

Cross-platform, cross-language messaging system?

心不动则不痛 提交于 2019-12-02 23:44:35
I'm developing a set of applications that work together to create a system for processing metering data. There's several reasons I want to have them loosely coupled and the system should be extensible by third parties, so the apps will be tied together via messaging. I'm looking for a messaging system that offers bindings in (at least) C#, Java and Python and supports messaging patterns like Publish-Subscribe, Guaranteed Delivery, Selective Consumer (like Peek in .Net Messaging). As far as I could find out, there's nothing wrong with JMS or .Net Messaging, it's just that they are for .Net /

Sending messages from other languages to an IPython kernel

别等时光非礼了梦想. 提交于 2019-12-02 22:14:51
Does anyone have any experience of communicating with IPython kernels from outside of Python? If I were trying to send messages from a Python app to an IPython kernel, I'd use the zmq.kernelmanager API. As it is, I'll obviously need to write my own kernel manager in another language, but I can't find the information that I'm looking for about the low-level messaging protocols. Is there an official spec or a 'cheat sheet' that documents the structure of the actual messages that get sent over 0MQ? This page describes a higher-level protocol than what I'm looking for... Will I have to manually

How to receive information from an incoming text message?

拜拜、爱过 提交于 2019-12-02 21:51:56
问题 I need 2 variables from an incoming text message, the sender and the message body. How do I access them? 回答1: Here is step by step description for how to read incoming sms in android You need to use broadcast receiver for that Declare receiver in AndroidManifest <receiver android:name=".IncomingSms"> <intent-filter> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> Give read SMS permission in AndroidManifest <uses-permission android:name="android.permission

What's the purpose of Kafka's key/value pair-based messaging?

老子叫甜甜 提交于 2019-12-02 17:50:42
All of the examples of Kafka | producers show the ProducerRecord 's key/value pair as not only being the same type (all examples show <String,String> ), but the same value . For example: producer.send(new ProducerRecord<String, String>("someTopic", Integer.toString(i), Integer.toString(i))); But in the Kafka docs, I can't seem to find where the key/value concept (and its underlying purpose/utility) is explained. In traditional messaging (ActiveMQ, RabbitMQ, etc.) I've always fired a message at a particular topic/queue/exchange. But Kafka is the first broker that seems to require key/value

What is the difference between a MessageListener and a Consumer in JMS?

旧时模样 提交于 2019-12-02 17:42:12
I am new to JMS . As far as I understood Consumers are capable of picking messages from queue/topic. So why do you need a MessageListener because Consumers will know when they have picked up messages? What is the practical use of such a MessageListener ? Edit:From the Javadoc of MessageListener : A MessageListener object is used to receive asynchronously delivered messages. Each session must insure that it passes messages serially to the listener. This means that a listener assigned to one or more consumers of the same session can assume that the onMessage method is not called with the next