messaging

Reason for Uncaught Error: Attempting to use a disconnected port object

醉酒当歌 提交于 2019-11-30 13:44:21
问题 I am getting this error in background page when responding to request from content script. Does anyone know what can be causing this error? Full stack trace: Uncaught Error: Attempting to use a disconnected port object chrome/RendererExtensionBindings:147 chrome.Port.postMessage chrome/RendererExtensionBindings:147 chromeHidden.Port.dispatchOnConnect.connectEvent chrome/RendererExtensionBindings:89 myExtension.foo.sendResponse.state background.js:1573 db.readTransaction.tx.executeSql.paramStr

Kafka - Delayed Queue implementation using high level consumer

最后都变了- 提交于 2019-11-30 11:57:29
问题 Want to implement a delayed consumer using the high level consumer api main idea: produce messages by key (each msg contains creation timestamp) this makes sure that each partition has ordered messages by produced time. auto.commit.enable=false (will explicitly commit after each message process) consume a message check message timestamp and check if enough time has passed process message (this operation will never fail) commit 1 offset while (it.hasNext()) { val msg = it.next().message() /

Testing Camel with MockEndpoints

孤街浪徒 提交于 2019-11-30 11:31:15
I've got a series of "pipelined" components that all communicate through ActiveMQ message queues. Each component uses Camel to treat each of these queues as an Endpoint. Each component uses the same basic pattern: Where each component consumes messages off of an input queue, processes the message(s), and then places 1+ messages on an outbound/output queue. The "output" queue then becomes the "input" queue for the next component in the chain. Pretty basic. I am now trying to roll up my sleeves and provide unit testing for each component using the MockEndpoints provided by Camel's test API. I

Alternative to Application.DoEvents()

放肆的年华 提交于 2019-11-30 10:23:32
I am developing a messaging system based on webBrowser controls so that I can format the text however I please. When the user is offline and is sent messages, the messages are stored and an event is sent for every message when they log back in. When I set the default html and such for the website, I normally use: while (this.webBrowser1.ReadyState != WebBrowserReadyState.Complete) Application.DoEvents(); This works when the program is running normally. When the user is receiving message sent when they are offline, this triggers the next message event and so on, with each message until the last

How do I force an iOS app to use 3G instead of WiFi?

爱⌒轻易说出口 提交于 2019-11-30 10:06:33
I want to use a messaging protocol that works fine over 3G, but not over some corporate firewalls. How can my app force the use of the cellular network when it fails to connect over WiFi even in the case that the WiFi network is reachable? EDIT: After reading through the implementation of the Reachability class I remain unsure whether the two are indeed mutually exclusive. It could well be possible to discover both interfaces via gethostbyname() , which I might try just to see what comes out. Use getifaddrs to enumerate the network interfaces. Look for ifa_name that starts with "pdp." This

while starting wildfly 10.1 to work with artemis, jboss.ra.activemq-ra is not installed error persists

家住魔仙堡 提交于 2019-11-30 09:52:32
问题 I try to apply appropriate configuration to be able to use remote messaging system on artemis server through wildfly (also other environment members) Firstly, i installed a standalone artemis server(2.0) on my local ( https://www.apache.org/dyn/closer.cgi?filename=activemq/activemq-artemis/2.0.0/apache-artemis-2.0.0-bin.zip&action=download ) Then i defined an example queueu on it. (exampleQueue) I changed the standalone.xml file according to informations on https://docs.jboss.org/author

Microsoft.ServiceBus.Messaging vs Microsoft.Azure.ServiceBus

 ̄綄美尐妖づ 提交于 2019-11-30 08:38:38
MS has recently introduced the Microsoft.Azure.ServiceBus namespace. https://github.com/Azure/azure-service-bus/blob/master/samples/readme.md It is geared for the new .net standard framework (as if MS doesn't have enough semi-redundant code bases) My question is, how much better could it be in terms of performance? I can say with confidence, that the Microsoft.ServiceBus.Messaging leaves lots to be desired, in particular when it comes to persistent receiving. A very useful feature of the Microsoft.ServiceBus.Messaging , is the message pump, built on top of OnMessage() method. The new library,

Reason for Uncaught Error: Attempting to use a disconnected port object

隐身守侯 提交于 2019-11-30 08:35:54
I am getting this error in background page when responding to request from content script. Does anyone know what can be causing this error? Full stack trace: Uncaught Error: Attempting to use a disconnected port object chrome/RendererExtensionBindings:147 chrome.Port.postMessage chrome/RendererExtensionBindings:147 chromeHidden.Port.dispatchOnConnect.connectEvent chrome/RendererExtensionBindings:89 myExtension.foo.sendResponse.state background.js:1573 db.readTransaction.tx.executeSql.paramStr background.js:1038 This only happens after a couple of hours of browsing reloading extension is not

Best solution for Java HTTP push (messaging) [closed]

99封情书 提交于 2019-11-30 08:17:22
We want to push data from a server to clients but can only use HTTP (port 80). What is the best solution for messaging? One idea is Comet . Are there other ideas or frameworks which offer lets say JMS over HTTP. (Yes, ActiveMQ supports it too, but waggly IMHO. And JXTA supports it too but the configuration is complicated. Something simple is preferred.) The simplest solution for many, many reasons is to use a Comet based approach (like you mention). This means the clients (to whom you want to "push" messages) open long-lived HTTP connections. Those connections stay open until they time out or

Messaging system database schema

百般思念 提交于 2019-11-30 07:42:41
I'm trying to implement a messaging system in PHP and MySQL but I'm having some trouble deciding on how I should do the tables and queries. What would be the best approach for a system that allows for multiple participants? I'm thinking I'd probably need 3 tables (aside from an users table). Something like Conversation ------------ id Messages -------- id conversation_id from_id subject message from_timestamp Participants ------------ conversation_id user_id last_read_timestamp The way it is setup I'd have to check for read messages by the timestamp instead of ticking off each message. I'd