Execute works on getAddedCollection but not getChangedCollection

James Livingood jlivingood at iaconline.com
Mon Jan 29 19:23:36 EST 2007


Hello all,
 
I've subscribed to the object I want:

HypothesisSub = (IncrementalSubscription) getBlackboardService().subscribe(HYPOTHESIS_PRED);

 

And in my execute() I have:

for (Iterator i = HypothesisSub.getAddedCollection().iterator(); i.hasNext();) {

// grabs all the information and puts it into MS SQL. 

}

for (Iterator i = HypothesisSub.getChangedCollection().iterator(); i.hasNext();) {

// grab all the data AGAIN and put it into MS SQL

}

 

Why does the getAddedCollection run when the plugin is first started up, but the getChangedCollection does not run when objects that I've subscribed to change/new ones are added/etc?

 

 

Thanks for any hints, information, things to check, etc.

James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cougaar.org/pipermail/cougaar-developers/attachments/20070129/a659e93b/attachment-0001.html


More information about the Cougaar-developers mailing list