messaging

JMS - Going from one to multiple consumers

旧城冷巷雨未停 提交于 2019-11-28 16:07:08
I have a JMS client which is producing messages and sending over a JMS queue to its unique consumer. What I want is more than one consumer getting those messages. The first thing that comes to my mind is converting the queue to a topic, so current and new consumers can subscribe and get the same message delivered to all of them. This will obviously involve modifying the current clients code in both producer and consumer side of things. I would like to also look at other options like creating a second queue, so that I don't have to modify the existing consumer. I believe there are advantages in

.net service bus recommendations? [closed]

有些话、适合烂在心里 提交于 2019-11-28 15:51:43
We are in need of a distributed architecture messaging system/service bus with the capability of Publish/Subscribe. Does anyone have any reccomendations for a framework that we can use for .net applications? Dale Ragan NServiceBus is growing in popularity. It is open source as well. Here is a Hanselminutes episode with Scott Hanselman talking with Udi Dahan about NServiceBus to help grok it. You should definitely evaluate using it. UPDATE: There's also a DNR TV episode which shows what it's like to build an NServiceBus solution from scratch here: http://www.dnrtv.com/default.aspx?showNum=199

Why use AMQP/ZeroMQ/RabbitMQ

≯℡__Kan透↙ 提交于 2019-11-28 15:16:57
问题 as opposed to writing your own library. We're working on a project here that will be a self-dividing server pool, if one section grows too heavy, the manager would divide it and put it on another machine as a separate process. It would also alert all connected clients this affects to connect to the new server. I am curious about using ZeroMQ for inter-server and inter-process communication. My partner would prefer to roll his own. I'm looking to the community to answer this question. I'm a

How to use Yahoo IM messaging api? (unable_to_determine_oauth_type)

限于喜欢 提交于 2019-11-28 12:06:57
问题 Recently, I have just created a yahoo application by following the online [yahoo oauth 2.0 guide for developer,][2] I can get the OAuth 2.0 credential but meet "unable_to_determine_oauth_type" oauth problem while calling yahoo IM related [API][3]. Why? Here is my steps: curl -v https://api.login.yahoo.com/oauth2/request_auth -d 'client_id=[CLIENT-ID]&redirect_uri=oob&response_type=code&language=en-us' it then redirects me to https//login.yahoo.com/oa?.src=oauth2&.partner=&.pd=c%3DmZmAFpe

Is “self” weak within a method in ARC?

 ̄綄美尐妖づ 提交于 2019-11-28 10:20:48
I have a method that occasionally crashes. -(void)foo{ [self doSomething]; [self.delegate didFinish]; [self doSomethingElse]; } -doSomething works correctly, then I call to a delegate -didFinish. Within -didFinish, the reference to this object might be set to nil, releasing it under ARC. When the method crashes, it does so on -doSomethingElse. My assumption was that self would be strong within a method, allowing the function to complete. Is self weak or strong? Is there documentation on this? What would the reasoning be for it being strong or weak? Edit Upon being inspired by some of the

erlang message passing architecture

旧街凉风 提交于 2019-11-28 09:12:48
问题 In erlang if two processes A and B are sending message to a process C simultaneously. Will there be a race condition? C ! { very large message } sent by A C ! { very large message } sent by B Will C receive the complete message from A and then proceed for the message from B? or is it that C is likely be going to receive chunks of A's message along with chunks of B's message? 回答1: Message receiving is an atomic operation. If you are interested how it is done, read the source code of VM. If I

model user's message in rails 3

狂风中的少年 提交于 2019-11-28 06:04:35
I have built the following model to handle user's message exchange: create_table "messages", :force => true do |t| t.integer "source_id" t.integer "destination_id" t.string "object" t.string "body" t.datetime "created_at" t.datetime "updated_at" end These are its associations: class Message < ActiveRecord::Base belongs_to :sender, :class_name=>'User', :foreign_key=>'source_id' belongs_to :reciever, :class_name=>'User', :foreign_key=>'destination_id' end And these other are the associations on the other side (the user model): has_many :sent_messages, :class_name=> 'Message', :foreign_key=>

start whatsapp with android.content.Intent.ACTION_SENDTO

限于喜欢 提交于 2019-11-28 04:25:01
问题 I'm triying to start whatsapp with an android intent: String uri = "smsto:+123456"; Intent messageIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse(uri)); messageIntent.putExtra("sms_body", "My Message"); startActivity(messageIntent); It works great if the user picks the normal messaging application. But not if the user selects whatsapp from the chooser. The "compose text field" from whatsapp remains empty. What am I doing wrong here? Do I need another putExtra() ? 回答1: Here is the answer

Logging vs. Debugging

两盒软妹~` 提交于 2019-11-28 04:03:30
问题 Background: I've inherited a web application that is intended to create on-the-fly connections between local and remote equipment. There are a tremendous number of moving parts recently: the app itself has changed significantly; the development toolchain was just updated; and both the local and remote equipment have been "modified" to support those changes. The bright side is that it has a reasonable logging system that will write debug messages to a file, and it will log to both the file and

How to use Android App as a “Producing client” for Kafka?

安稳与你 提交于 2019-11-28 03:25:09
问题 Is it possible / does it make sense to use an Android app as a "Producing client" for Apache Kafka? Let's say my Android App need to capture and analyse reaction time data. Goal is to collect all data and show the average reaction time in real-time in the App. The alternative is having an app server of some kind as an intermediary that accepts messages from the android app and posts them to Kafka, rather than having the app be a Kafka Producer on its own. 回答1: Even if it's possible, in my