File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes How to do concurrent between different servers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "How to do concurrent between different servers" Watch "How to do concurrent between different servers" New topic
Author

How to do concurrent between different servers

Kai Shen
Greenhorn

Joined: Nov 24, 2008
Posts: 5
I want to implements a producer and consumer pattern between different servers (windows boxes). Where is the best place to store the queue? So, the queue can be enqueued from any different servers and dequeued from any different servers as well. The current system is using Oracle Advanced Queue. Is there any better way to achieve this?

Many thanks,

Kai
Kai Shen
Greenhorn

Joined: Nov 24, 2008
Posts: 5
can somebody help please?

many thanks,

Kai
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 2771

You should at least have a queue with the consumer. It will have one thread that reads data from the sender, and puts it in the queue (it's essentially a local producer) while the second thread takes data from the queue and processes it (local consumer).

The sender can query the receiver for the amount of empty places in the queue, and send that many entries before it queries again.
 
jQuery in Action, 2nd edition
 
subject: How to do concurrent between different servers
 
Threads others viewed
Load Balancing in Websphere 6.x through MDB's
Unable to access same database with two different application server
queue or priority oueue
MDB
OC4J JMS Clustering problem
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture