Author: asankaa
Date: Thu Dec 11 00:08:36 2008
New Revision: 26773
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=26773

Log:
change the samples


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
   branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml

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=26773&r1=26772&r2=26773&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
        Thu Dec 11 00:08:36 2008
@@ -56,7 +56,7 @@
         ServiceClient serviceClient;
         ConfigurationContext configContext = null;
 
-        String addUrl = getProperty("addurl", 
"http://localhost:8280/services/eventing";);
+        String addUrl = getProperty("addurl", 
"http://localhost:8280/services/EventingProxy";);
         String trpUrl = getProperty("trpurl", null);
         String prxUrl = getProperty("prxurl", null);
         String repo = getProperty("repository", "client_repo");

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=26773&r1=26772&r2=26773&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
    Thu Dec 11 00:08:36 2008
@@ -55,7 +55,7 @@
         ServiceClient serviceClient;
         ConfigurationContext configContext = null;
 
-        String addUrl = getProperty("addurl", 
"http://localhost:8280/services/eventing";);
+        String addUrl = getProperty("addurl", 
"http://localhost:8280/services/SampleEventSource";);
         String trpUrl = getProperty("trpurl", null);
         String prxUrl = getProperty("prxurl", null);
         String repo = getProperty("repository", "client_repo");

Modified: 
branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml?rev=26773&r1=26772&r2=26773&view=diff
==============================================================================
--- branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml   
(original)
+++ branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml   
Thu Dec 11 00:08:36 2008
@@ -19,11 +19,22 @@
 
 <!-- Simple Eventing configuration -->
 <definitions xmlns="http://ws.apache.org/ns/synapse";>
- <eventSource name="eventing">
-   <subscriptionManager 
class="org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager">
-   <property name="topicHeaderName" value="Topic"/>
-   <property name="topicHeaderNS" value="http://apache.org/aip"/>
-   </subscriptionManager>
- </eventSource>
- <log level="full"/>
+     <eventSource name="SampleEventSource">
+           <subscriptionManager 
class="org.apache.synapse.eventing.managers.DefaultInMemorySubscriptionManager">
+               <!--property name="registryURL" 
value="http://localhost:8180/wso2registry"/>
+               <property name="username" value="admin"/>
+               <property name="password" value="admin"/-->
+               <property name="topicHeaderName" value="Topic"/>
+               <property name="topicHeaderNS" value="http://apache.org/aip"/>
+           </subscriptionManager>
+     </eventSource>
+
+    <sequence name="PublicEventSource" >
+           <eventPublisher eventSourceName="SampleEventSource"/>
+    </sequence>
+
+    <proxy name="EventingProxy">
+        <log level="full"/>
+        <target inSequence="PublicEventSource" />
+    </proxy>
 </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