tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrianocrest...@apache.org
Subject svn commit: r831435 - /tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
Date Fri, 30 Oct 2009 19:51:46 GMT
Author: adrianocrestani
Date: Fri Oct 30 19:51:46 2009
New Revision: 831435

URL: http://svn.apache.org/viewvc?rev=831435&view=rev
Log:
fixing compilation problem on DeployedCompositeCollectionImpl

Modified:
    tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java

Modified: tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java?rev=831435&r1=831434&r2=831435&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
(original)
+++ tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/java/org/apache/tuscany/sca/domain/manager/impl/DeployedCompositeCollectionImpl.java
Fri Oct 30 19:51:46 2009
@@ -36,6 +36,7 @@
 import java.io.Writer;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import javax.xml.namespace.QName;
@@ -61,6 +62,7 @@
 import org.apache.tuscany.sca.data.collection.LocalItemCollection;
 import org.apache.tuscany.sca.data.collection.NotFoundException;
 import org.apache.tuscany.sca.domain.search.DomainSearch;
+import org.apache.tuscany.sca.domain.search.IndexException;
 import org.apache.xml.serialize.OutputFormat;
 import org.apache.xml.serialize.XMLSerializer;
 import org.osoa.sca.ServiceRuntimeException;
@@ -306,7 +308,13 @@
         for (Contribution contribution : contributions) {
             
             if (contributionURI.equals(contribution.getURI())) {
-                this.domainSearch.contributionUpdated(contribution, contribution);
+            	
+                try {
+					this.domainSearch.updateContribution(contribution, contribution);
+					
+				} catch (IndexException e) {
+					logger.log(Level.WARNING, "Could not update contribution " + contribution.getURI() +
" on the index, reason: " + e.getMessage());
+				}
                 
                 break;
                 



Mime
View raw message