[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Shared Queue Elements  XML
Forum Index -> Terracotta Platform
Author Message
nbreau

journeyman

Joined: 12/13/2006 04:48:43
Messages: 18
Offline

If I've created a queue which I've declared shared (root) which all my clusters will be reading objects instances from to process, will changes to the instances inside the queue read by each cluster also be replicated to the other clusters ? If so is there any way to disable this behavior ? All I want to implement is a single shared queue where each cluster removes objects from this queue and processes them independently.

If there is any documentation that expains these types of details please send me the link... I'm having a hard time finding any Documentation other than higher level overviews and basic samples.

thanks again,
Nick.
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

Hi,

I have a blog awhile back demonstrating this usecase. Take a look at the workLoad array in the Main class. In the CalculateNode.start(), I remove the element in the array and process it independently.

This app was written for the old config file format so you might run into config XML problem if you try to run it 'as is' with the current version.

http://blog.terracottatech.com/archive/2006/06/dso_mandelbrot.html

Hope that helps,

Hung-
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team