consumer

Library for OAuth Consumer (Java)

Hi, I'm looking for a Java library that helps me building an OAuth Consumer. I must be able to receive OAuth signed requests and determine whether they are valid or not (checking the signature, timestamp and nonce values). Do you know if there's something out there that makes this task easier? thanks a ton! ...

ActiveMQ publisher and subscriber in multiple languanges(C++ Java)

I want to use ActiveMQ as a message broker communicating between a C++ component and a Java component in two process. Eg. C++ component is the publisher and the Java component is the subscriber(there maybe multiple subscribers). I look at ActiveMQ website and it mentions the tool OpenWire and ActiveMQ-CPP. However, all the examples on th...

On MacOSX, in C++, how to do interprocess communication over shared memory without spin lock?

I have two processes: Producer and Consumer they have a commonly mmaped shared region of memory Memory Now, Producer writes stuff to Memory. Consumer reads stuff from Memory. I would prefer Consumer not to spin wait with Memory is empty. I would prefer Producer not to spin wait when Memory is full. How do I achieve this? ...

Producer/consumer system using database (MySql), is this feasible?

Hi all. I need to use something to coordinate my system with several consumers/producers each running on different machines with different operating systems. I have been researching on using MySql to do this, but it seems ridiculously difficult. My requirements are simple: I want to be able to add or remove consumers/producers at any ti...

Unknown error in Producer/Consumer program, believe it to be an infinite loop.

Hello, I am writing a program that is solving the producer/consumer problem, specifically the bounded-buffer version(i believe they mean the same thing). The producer will be generating x number of random numbers, where x is a command line parameter to my program. At the current moment, I believe my program is entering an infinite loop, ...

WCF MSMQ consumer thread count

What's the best way to configure the maximum number of threads that can pull messages from an MSMQ queue, using a netMsmqBinding in WCF? For example, say I have an MSMQ service for which I only want to have 2 (or 10, or whatever number of) worker threads pulling messages off at a time. ...

My Produce Consumer Hangs

Please copy the program below and try running in your IDE. It's a simple Produce Consumer implementation - it runs fine when I use one Producer and one Consumer thread but fails when using 2 each. Please let me know the reason why this program hangs or is there anything else wrong with it. import java.util.LinkedList; import java.util.Q...

ActiveMQ single consumer multiple producers

hi guys, can anybody point out a reference on how to implement a single consumer multiple producer in activemq Or could give a very simple implementation this will be very helpful. tnx ...