summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java19
-rw-r--r--branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite2
2 files changed, 16 insertions, 5 deletions
diff --git a/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java b/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java
index 70e05b3bb3..7b2edb2e6a 100644
--- a/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java
+++ b/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java
@@ -85,22 +85,33 @@ public class AggregatorImpl implements org.apache.tuscany.sca.binding.atom.colle
if (atomFeed1 != null) {
try {
entries.addAll(atomFeed1.getFeed().getEntries());
- } catch (Exception e) {}
+ } catch (Exception e) {
+ int x = 0;
+ }
}
if (atomFeed2 != null) {
try {
entries.addAll(atomFeed2.getFeed().getEntries());
- } catch (Exception e) {}
+ } catch (Exception e) {
+ int x = 0;
+
+ }
}
if (rssFeed1 != null) {
try {
entries.addAll(atomFeed(rssFeed1.getFeed()).getEntries());
- } catch (Exception e) {}
+ } catch (Exception e) {
+ int x = 0;
+
+ }
}
if (rssFeed2 != null) {
try {
entries.addAll(atomFeed(rssFeed2.getFeed()).getEntries());
- } catch (Exception e) {}
+ } catch (Exception e) {
+ int x = 0;
+
+ }
}
// Sort entries by updated date
diff --git a/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite b/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite
index 8a3a53b4d5..c79df7fbd7 100644
--- a/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite
+++ b/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite
@@ -49,7 +49,7 @@
<implementation.java class="feed.AggregatorImpl"/>
<reference name="sort" target="Sort"/>
<reference name="atomFeed1">
- <tuscany:binding.atom uri="http://www.oreillynet.com/pub/feed/35"/>
+ <tuscany:binding.atom uri="http://apache-tuscany.blogspot.com/feeds/posts/default"/>
</reference>
<reference name="atomFeed2">
<tuscany:binding.atom uri="http://feeds.feedburner.com/blogspot/Dcni?format=xml"/>