Author: asankaa
Date: Sun Nov 30 22:23:05 2008
New Revision: 25326
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=25326

Log:
change samples


Added:
   branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml
      - copied, changed from r25261, 
/branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_430.xml
Modified:
   
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSender.java
   
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSubscriber.java

Modified: 
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSender.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSender.java?rev=25326&r1=25325&r2=25326&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSender.java
        (original)
+++ 
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSender.java
        Sun Nov 30 22:23:05 2008
@@ -63,9 +63,9 @@
         String symbol = getProperty("symbol", "GOOG");
         String price = getProperty("price", "10.10");
         String qty = getProperty("qty", "1000");
-        String topic = getProperty("topic", "wso2/event/test");
+        String topic = getProperty("topic", "synapse/event/test");
         String action = getProperty("action", "urn:event");
-        String topicns = getProperty("topicns","http://wso2.com/aip";);
+        String topicns = getProperty("topicns","http://apache.org/aip";);
 
         if (repo != null && !"null".equals(repo)) {
             configContext =

Modified: 
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSubscriber.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSubscriber.java?rev=25326&r1=25325&r2=25326&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSubscriber.java
    (original)
+++ 
branches/synapse/1.2.wso2v1/modules/samples/src/main/java/samples/userguide/EventSubscriber.java
    Sun Nov 30 22:23:05 2008
@@ -59,11 +59,11 @@
         String trpUrl = getProperty("trpurl", null);
         String prxUrl = getProperty("prxurl", null);
         String repo = getProperty("repository", "client_repo");
-        String topic = getProperty("topic", "wso2/event/test");
+        String topic = getProperty("topic", "synapse/event/test");
         String address = getProperty("address", 
"http://localhost:9000/services/SimpleStockQuoteService";);
         String mode = getProperty("mode", "subscribe");
         String identifier = getProperty("identifier", "90000");
-        String expires = getProperty("expires", 
"2008-12-31T21:07:00.000-08:00");
+        String expires = getProperty("expires", 
"2020-12-31T21:07:00.000-08:00");
 
         if (repo != null && !"null".equals(repo)) {
             configContext =

Copied: 
branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml (from 
r25261, 
/branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_430.xml)
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml?rev=25326&r1=25261&r2=25326&view=diff
==============================================================================
--- /branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_430.xml  
(original)
+++ branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml   
Sun Nov 30 22:23:05 2008
@@ -17,19 +17,14 @@
   ~  under the License.
   -->
 
-<!-- Simple callout  mediator -->
+<!-- Simple Eventing configuration -->
 <definitions xmlns="http://ws.apache.org/ns/synapse";>
-    <callout serviceURL="http://localhost:9000/soap/SimpleStockQuoteService";
-             action="urn:getQuote">
-        <source xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/";
-                xmlns:s12="http://www.w3.org/2003/05/soap-envelope";
-                xpath="s11:Body/child::*[fn:position()=1] | 
s12:Body/child::*[fn:position()=1]"/>
-        <target xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/";
-                xmlns:s12="http://www.w3.org/2003/05/soap-envelope";
-                xpath="s11:Body/child::*[fn:position()=1] | 
s12:Body/child::*[fn:position()=1]"/>
-    </callout>
-    <property name="RESPONSE" value="true"/>
-    <header name="To" action="remove"/>
-    <send/>
-    <drop/>
+
+ <eventSource name="eventing">
+   <subscriptionManager 
class="org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager">
+   <property name="topicHeaderName" value="Topic"/>
+   <property name="topicHeaderNS" value="http://wso2.com/aip"/>
+   </subscriptionManager>
+ </eventSource>
+ <log level="full"/>
 </definitions>
\ No newline at end of file

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to