Author: asankaa Date: Sun Nov 30 23:10:21 2008 New Revision: 25338 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=25338
Log: add documentation for sample 500 Modified: branches/synapse/1.2.wso2v1/repository/conf/sample/synapse_sample_500.xml branches/synapse/1.2.wso2v1/src/site/xdoc/Synapse_Samples.xml 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=25338&r1=25337&r2=25338&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 Sun Nov 30 23:10:21 2008 @@ -19,11 +19,10 @@ <!-- 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://wso2.com/aip"/> + <property name="topicHeaderNS" value="http://apache.org/aip"/> </subscriptionManager> </eventSource> <log level="full"/> Modified: branches/synapse/1.2.wso2v1/src/site/xdoc/Synapse_Samples.xml URL: http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/src/site/xdoc/Synapse_Samples.xml?rev=25338&r1=25337&r2=25338&view=diff ============================================================================== --- branches/synapse/1.2.wso2v1/src/site/xdoc/Synapse_Samples.xml (original) +++ branches/synapse/1.2.wso2v1/src/site/xdoc/Synapse_Samples.xml Sun Nov 30 23:10:21 2008 @@ -442,6 +442,14 @@ </li> </ul> </li> + <li> + <a href="#Task">Introduction to Eventing</a> + <ul> + <li> + <a href="#Sample500">Sample 500: Introduction to Eventing</a> + </li> + </ul> + </li> </ul> </div> <h1> @@ -5381,5 +5389,61 @@ </p> <pre xml:space="preserve">ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/</pre> </div> + <h2> + <a name="Sample500" id="Sample500">Sample 500: Simple Eventing Sample</a> + </h2> + <p> +   + </p> +<pre xml:space="preserve"> +<!-- 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" /> +</definitions></pre> + <div> + <p> + <strong>Objective:</strong> Demonstrate the use of the Eventing functionality built with synapse + </p> + <p> + <strong>Prerequisites:</strong> Deploy the + SimpleStockQuoteService in sample Axis2 server and start it on port + 9000. + </p> + <p> + Start Synapse with the sample configuration 500 (i.e. synapse -sample + 500). + </p> + <p> + 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. + </p> +<pre xml:space="preserve">ant eventsubscriber</pre> + <p> + Invoke the client (Sender) as follows. + </p> +<pre xml:space="preserve">ant eventsender</pre> + <p> + Invoke the client (Un-Subscribe) as follows. + </p> +<pre xml:space="preserve">ant eventsubscriber -Dmode=unsubscribe -Didentifier=urn:uuid:6DFDF649A67416BFCC1228112473802909001-111373032</pre> + <p> + Invoke the client (Re-New) as follows. + </p> +<pre xml:space="preserve">ant eventsubscriber -Dmode=renew -Didentifier=urn:uuid:6DFDF649A67416BFCC1228112473802909001-111373032 -Dexpires=2009-12-31T21:07:00.000-08:00</pre> + <p> + Invoke the client (GetStatus) as follows. + </p> +<pre xml:space="preserve">ant eventsubscriber -Dmode=getstatus -Didentifier=urn:uuid:6DFDF649A67416BFCC1228112473802909001-111373032</pre> + </div> </body> </document> _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
