[jboss-user] [JBossCache] - Re: ClusteredCacheLoader + LOCAL CacheMode

lovelyliatroim do-not-reply at jboss.com
Thu Nov 29 05:27:34 EST 2007


anonymous wrote : Perhaps run in replicated mode but for every write set a cacheModeLocal Option?

Kinda worked but not really, first put was surpressed i.e not replicated but the rest after it were. Im adding the nodes like so


  | 		for(int i = 0; i <noOfItems;i++){
  | 			Quote quote1 = new Quote(nodeName+requestCounter,"EWX","EUR");
  | 			String path = "/quotes/"+quote1.getTreePath()+random;
  | 			TNode root = cache.getRoot();
  | 			TNode child = root.addChild(path);
  | 			cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
  | 			child.put("quote", quote1);		
  | 			requestCounter++;
  | 		}
  | 
  | 

So i added 5 nodes, replicates the first 4, but the 5th it doesnt!! Any thoughts?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108825#4108825

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108825



More information about the jboss-user mailing list