You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2009/01/01 15:41:36 UTC
svn commit: r730551 - in /synapse/trunk/java:
modules/samples/src/main/scripts/build.xml src/site/xdoc/Synapse_Samples.xml
Author: veithen
Date: Thu Jan 1 06:41:35 2009
New Revision: 730551
URL: http://svn.apache.org/viewvc?rev=730551&view=rev
Log:
Some minor corrections and additions to the new eventing samples.
Modified:
synapse/trunk/java/modules/samples/src/main/scripts/build.xml
synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
Modified: synapse/trunk/java/modules/samples/src/main/scripts/build.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/samples/src/main/scripts/build.xml?rev=730551&r1=730550&r2=730551&view=diff
==============================================================================
--- synapse/trunk/java/modules/samples/src/main/scripts/build.xml (original)
+++ synapse/trunk/java/modules/samples/src/main/scripts/build.xml Thu Jan 1 06:41:35 2009
@@ -84,7 +84,7 @@
ant mddproducer
ant eventsubscriber
- A client that subscribe to the Synapse event source
+ A client that subscribes to the Synapse event source
examples:
ant eventsubscriber
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml?rev=730551&r1=730550&r2=730551&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml Thu Jan 1 06:41:35 2009
@@ -3979,7 +3979,7 @@
</definitions></pre>
<div>
<p>
- <strong>Objective:</strong> Demonstrate the use of the Eventing functionality built with synapse
+ <strong>Objective:</strong> Demonstrate the use of the Eventing functionality built with Synapse
</p>
<p>
<strong>Prerequisites:</strong> Deploy the
@@ -3994,14 +3994,30 @@
In this sample, the event source creted based on the configuration. Event subscriber subscribes for the events, Event sender publish events and the SimpleStockQuoteService act as the Event Sink.
</p>
<p>
- Invoke the client (Subscriber) as follows.
+ Invoke the client (Subscriber) as follows:
</p>
<pre xml:space="preserve">ant eventsubscriber</pre>
- <p>
- Invoke the client (Sender) as follows.
- </p>
+ <p>
+ This will create a new subscription with the SimpleStockQuoteService deployed on the sample
+ Axis2 server acting as the sink: whenever a new event is published, SimpleStockQuoteService
+ will receive a message with that event.
+ </p>
+ <p>
+ Next, invoke the client (Sender) as follows:
+ </p>
<pre xml:space="preserve">ant eventsender</pre>
<p>
+ This will send a placeOrder message to the EventingProxy. You should see this message in the
+ Synapse logs. Note the presence of the following SOAP header in the request:
+ </p>
+<pre><aip:Topic xmlns:aip="http://apache.org/aip">synapse/event/test</aip:Topic></pre>
+ <p>
+ Since there is a single subscription with SimpleStockQuoteService as the sink, Synapse will
+ send the message to the sample Axis2 server and you should see the following message in
+ its logs:
+ </p>
+<pre>Accepted order for : 1000 stocks of GOOG at $ 10.1</pre>
+ <p>
Invoke the client (Un-Subscribe) as follows.
</p>
<pre xml:space="preserve">ant eventsubscriber -Dmode=unsubscribe -Didentifier=urn:uuid:6DFDF649A67416BFCC1228112473802909001-111373032</pre>