tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r546083 - in /incubator/tuscany/java/sca/demos/alert-aggregator: ./ src/main/java/org/apache/tuscany/sca/samples/aggregator/ src/main/resources/ src/main/resources/aggregator/ src/main/webapp/ src/test/java/org/apache/tuscany/sca/samples/ag...
Date Mon, 11 Jun 2007 10:57:23 GMT
Author: slaws
Date: Mon Jun 11 03:57:22 2007
New Revision: 546083

URL: http://svn.apache.org/viewvc?view=rev&rev=546083
Log:
Alert aggregator demo - copied from slaws sandbox - based on the the alert aggregator sample
from the native SCA implementation

Added:
    incubator/tuscany/java/sca/demos/alert-aggregator/
      - copied from r540903, incubator/tuscany/sandbox/slaws/feed-aggregator/
    incubator/tuscany/java/sca/demos/alert-aggregator/aggregator.png
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/aggregator.png
    incubator/tuscany/java/sca/demos/alert-aggregator/aggregator.svg
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/aggregator.svg
    incubator/tuscany/java/sca/demos/alert-aggregator/build-dojo.xml
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/build-dojo.xml
    incubator/tuscany/java/sca/demos/alert-aggregator/build.xml
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/build.xml
    incubator/tuscany/java/sca/demos/alert-aggregator/pom.xml
      - copied, changed from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/pom.xml
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertTypeNonSDOImpl.java
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertTypeNonSDOImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsFeedServiceImpl.java
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsFeedServiceImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsServiceImpl.java
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsServiceImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsSourcesService.java
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsSourcesService.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsSourcesServiceImpl.java
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsSourcesServiceImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsTypeNonSDOImpl.java
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/AlertsTypeNonSDOImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/ConfigTypeNonSDOImpl.java
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/ConfigTypeNonSDOImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/RSSCheckerService.java
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/RSSCheckerService.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/RSSCheckerServiceImpl.java
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/RSSCheckerServiceImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/java/org/apache/tuscany/sca/samples/aggregator/SourceTypeNonSDOImpl.java
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/Alerts.xsd
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/Alerts.xsd
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/AlertsSources.wsdl
      - copied unchanged from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/AlertsSources.wsdl
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/alerts.composite
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/alerts.composite
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/sources.xml
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/resources/sources.xml
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/
      - copied from r543501, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/FeedAggregator.html
      - copied, changed from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/style.css
      - copied unchanged from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/style.css
    incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java
      - copied, changed from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java
Removed:
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/resources/aggregator/

Copied: incubator/tuscany/java/sca/demos/alert-aggregator/pom.xml (from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/pom.xml)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/pom.xml?view=diff&rev=546083&p1=incubator/tuscany/sandbox/slaws/feed-aggregator/pom.xml&r1=543647&p2=incubator/tuscany/java/sca/demos/alert-aggregator/pom.xml&r2=546083
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/pom.xml (original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/pom.xml Mon Jun 11 03:57:22 2007
@@ -24,16 +24,16 @@
 
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
-        <artifactId>tuscany-samples</artifactId>
+        <artifactId>tuscany-demos</artifactId>
         <version>1.0-incubating-SNAPSHOT</version>
-        <relativePath>../../../java-head/sca/samples/pom.xml</relativePath>
+        <relativePath>../pom.xml</relativePath>
     </parent>
 
     <groupId>org.apache.tuscany.sca</groupId>
-    <artifactId>feed-aggregator</artifactId>
+    <artifactId>alert-aggregator</artifactId>
     <packaging>war</packaging>
     <version>1.0-incubating-SNAPSHOT</version>
-    <name>feed-aggregator</name>
+    <name>Apache Tuscany BigBank Alert Aggregator Demo</name>
     <url>http://cwiki.apache.org/TUSCANY</url>  
 
     <dependencies>

Copied: incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/FeedAggregator.html
(from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/FeedAggregator.html?view=diff&rev=546083&p1=incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html&r1=543647&p2=incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/FeedAggregator.html&r2=546083
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/main/webapp/FeedAggregator.html (original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/FeedAggregator.html
Mon Jun 11 03:57:22 2007
@@ -18,7 +18,7 @@
  * under the License.    
  -->
   <head>
-    <title>Apache Tuscany Feed Aggregator Sample</TITLE>
+    <title>Apache Tuscany Alert Aggregator Sample</TITLE>
     
     <script type="text/javascript">
         //var djConfig = {isDebug: true,debugContainerId: "dojoDebug" };
@@ -42,8 +42,9 @@
     <script type="text/javascript">
     
         // The proxy for the alert and alertsources services running in Tuscany
-        var alertsService       = new dojo.rpc.JsonService("services/AlertsServiceJSONRPC?smd");
-        var alertSourcesService = new dojo.rpc.JsonService("services/AlertsSourcesServiceJSONRPC?smd");
+        var alertsService       = new dojo.rpc.JsonService("services/SCADomain/AlertsServiceJSONRPC?smd");
+        var alertSourcesService = new dojo.rpc.JsonService("services/SCADomain/AlertsSourcesServiceJSONRPC?smd");
+
         // If you want to put an HTTP sniffer in the way to look at the JSONROPC packets
you'll
         // need to edit the target address of the service in the smd. The only way to do
this easily
         // is to read an smd from disc rather than generate one. There are two smds provided
for this
@@ -322,7 +323,7 @@
     <p><a id="data" HREF="#top">Back to top</a></p>
     <div id="alertData"></div>
     <p/>
-    <div id="dojoDebug">Dojo Debug:</div>
+    <div id="dojoDebug"></div>
        
   </body>
 </html>

Copied: incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java
(from r543647, incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java?view=diff&rev=546083&p1=incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java&r1=543647&p2=incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java&r2=546083
==============================================================================
--- incubator/tuscany/sandbox/slaws/feed-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java
(original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/src/test/java/org/apache/tuscany/sca/samples/aggregator/AlertsTestCase.java
Mon Jun 11 03:57:22 2007
@@ -50,14 +50,14 @@
     protected void tearDown() {
         scaDomain.close();
     }
-    /*  
+   
     public void testWait() throws Exception { 
         System.out.println("Feed aggregator server started (press enter to shutdown)");
-        System.in.read();
+    //    System.in.read();
         System.out.println("Feed aggregator server stopped");
     }
 
- 
+   /* 
     public void testGetAllNewAlerts() throws Exception {   
         JSONObject jsonRequest = new JSONObject("{\"params\":[\"sometext\"],\"method\":\"getAllNewAlerts\",\"id\":2}");
         JSONObject jsonResp    = callService ("http://localhost:8080/AlertsServiceJSONRPC",
@@ -69,10 +69,10 @@
         JSONObject jsonResp    = callService ("http://localhost:8080/AlertsSourcesServiceJSONRPC",
                                               jsonRequest);  
     }
-    */ 
+  
     public void testGetAlertSources() throws Exception {   
         JSONObject jsonRequest = new JSONObject("{\"params\":[\"sometext\"],\"method\":\"getAlertSources\",\"id\":2}");
-        JSONObject jsonResp    = callService ("http://localhost:8080/AlertsSourcesServiceJSONRPC",
+        JSONObject jsonResp    = callService ("http://localhost:8080/SCADomain/AlertsSourcesServiceJSONRPC",
                                               jsonRequest);                             
   
         assertEquals("BBC News", jsonResp.getJSONObject("result").getJSONObject("source").optJSONArray("list").getJSONObject(0).getString("name"));

     }    
@@ -87,5 +87,5 @@
         assertEquals(200, response.getResponseCode());
         return new JSONObject(response.getText()); 
     }
-  
+    */ 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message