You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2006/10/05 11:04:30 UTC
svn commit: r453149 -
/incubator/servicemix/site/sm30ug/ws-notification-clustered.html
Author: chirino
Date: Thu Oct 5 02:04:30 2006
New Revision: 453149
URL: http://svn.apache.org/viewvc?view=rev&rev=453149
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/sm30ug/ws-notification-clustered.html
Modified: incubator/servicemix/site/sm30ug/ws-notification-clustered.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/ws-notification-clustered.html?view=diff&rev=453149&r1=453148&r2=453149
==============================================================================
--- incubator/servicemix/site/sm30ug/ws-notification-clustered.html (original)
+++ incubator/servicemix/site/sm30ug/ws-notification-clustered.html Thu Oct 5 02:04:30 2006
@@ -45,10 +45,59 @@
<P>This examples relies on the <A href="servicemix-wsn2005.html" title="servicemix-wsn2005">WS-Notification component</A>.</P>
+<H2><A name="WS-NotificationClustered-Launchingtheexample"></A>Launching the example</H2>
+
+<P>To run this example, open three terminals - one for each instance directory. In each terminal, start ServiceMix and feed the configuration like so:</P>
+
+<P>In terminal one:</P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>$ cd ./instance1
+$ ../../../bin/servicemix ./servicemix1.xml
+</PRE>
+</DIV></DIV>
+
+<P>In terminal two:</P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>$ cd ./instance2
+$ ../../../bin/servicemix ./servicemix2.xml
+</PRE>
+</DIV></DIV>
+
+<P>In terminal three:</P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>$ cd ./instance3
+$ ../../../bin/servicemix ./servicemix3.xml
+</PRE>
+</DIV></DIV>
+
+<P>ServiceMix instance3 will publish messages to the topic named MyTopic and ServiceMix instance2 will receive these messages because it is subscribed to the topic named MyTopic.</P>
+
+<P>The output of instance2 will look like:</P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>INFO - TraceComponent - Exchange: InOnly[
+ id: ID:guillaumes-2995-1160038439984-8:4
+ status: Active
+ role: provider
+ endpoint: endpoint
+ in: <?xml version="1.0" encoding="UTF-8"?><ns2:Notify xmlns:ns2="http://docs.o
+asis-open.org/wsn/b-2" xmlns="http://www.w3.org/2005/08/addressing" xmlns:ns3="h
+ttp://docs.oasis-open.org/wsn/t-1" xmlns:ns4="http://docs.oasis-open.org/wsrf/bf
+-2"><ns2:NotificationMessage><ns2:Topic>myTopic</ns2:Topic><ns2:Message><timer x
+mlns="" xmlns:ns5="http://www.w3.org/2005/08/addressing"><name>My Example Job</n
+ame><group>ServiceMix</group><fullname>ServiceMix.My Example Job</fullname><desc
+ription/><fireTime>Thu Oct 05 10:54:32 CEST 2006</fireTime></timer></ns2:Message
+></ns2:NotificationMessage></ns2:Notify>
+] received IN message: org.apache.servicemix.jbi.messaging.NormalizedMessageImpl
+@1298826{properties: {}}
+</PRE>
+</DIV></DIV>
+
<H2><A name="WS-NotificationClustered-Publisherside"></A>Publisher side</H2>
<H3><A name="WS-NotificationClustered-Quartzcomponent"></A>Quartz component</H3>
+<P>Refer to <A href="../SM/quartz.html" title="Quartz">SM:Quartz</A> for more informations.</P>
+
<DIV class="code"><DIV class="codeContent">
<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec destinationService=<SPAN class="code-quote">"test:publisher"</SPAN> destinationEndpoint=<SPAN class="code-quote">"endpoint"</SPAN>></SPAN>
<SPAN class="code-tag"><sm:component></SPAN>
@@ -163,7 +212,7 @@
<DIV id="site-footer">
Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A>,
last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Oct 05, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13570&originalId=13964">view change</A>)
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13570&originalId=13970">view change</A>)
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=13570">edit page</A>)
</DIV>