producer

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? ...

Many producer, single consumer with python/mod_wsgi

I have a Pylons web application served by Apache (mod_wsgi, prefork). Because of Apache, there are multiple separate processes running my application code concurrently. Some of the non-critical tasks that the application does I want to defer for processing in background to improve "live" response times. So I'm thinking of task queue, man...

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, ...

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 ...

Producing WSRP 1.0/2.0 from a standalone webapp - state of the art

Dear all, I intend to produce WSRP interfaces from a standalone Java web application so that one can embed its front-end in portals (Liferay, IBM websphere portal), aside standalone front-end and back-ends. What is the recommended way to achieve this ? I cannot find out a WSRP producer Java library that seems to do the job. The common...