Author: chirino
Date: Sun Sep 10 13:00:52 2006
New Revision: 441997

URL: http://svn.apache.org/viewvc?view=rev&rev=441997
Log:
Latest export from confluence

Added:
    incubator/servicemix/site/sm30ug/ws-notification-clustered.html
Modified:
    incubator/servicemix/site/sm30ug/4-examples.html

Modified: incubator/servicemix/site/sm30ug/4-examples.html
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/4-examples.html?view=diff&rev=441997&r1=441996&r2=441997
==============================================================================
--- incubator/servicemix/site/sm30ug/4-examples.html (original)
+++ incubator/servicemix/site/sm30ug/4-examples.html Sun Sep 10 13:00:52 2006
@@ -52,7 +52,7 @@
        <LI><A href="rss-binding.html" title="RSS Binding">RSS Binding</A></LI>
        <LI><A href="vfs-binding.html" title="VFS Binding">VFS Binding</A></LI>
        <LI><A href="wsdl-first.html" title="WSDL First">WSDL First</A></LI>
-       <LI><SPAN class="nobr"><A 
href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20Clustered&linkCreation=true&fromPageId=13490";
 title="Create Page: WS-Notification Clustered" 
class="createlink">WS&#45;Notification Clustered<SUP><IMG class="rendericon" 
src="http://goopen.org/confluence/images/icons/plus.gif"; height="7" width="7" 
align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+       <LI><A href="ws-notification-clustered.html" title="WS-Notification 
Clustered">WS&#45;Notification Clustered</A></LI>
        <LI><SPAN class="nobr"><A 
href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20HTTP%20Binding&linkCreation=true&fromPageId=13490";
 title="Create Page: WS-Notification HTTP Binding" 
class="createlink">WS&#45;Notification HTTP Binding<SUP><IMG class="rendericon" 
src="http://goopen.org/confluence/images/icons/plus.gif"; height="7" width="7" 
align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
 </UL>
 
@@ -177,7 +177,7 @@
        <LI><A href="file-binding.html" title="File Binding">File 
Binding</A></LI>
        <LI><A href="rss-binding.html" title="RSS Binding">RSS Binding</A></LI>
        <LI><A href="vfs-binding.html" title="VFS Binding">VFS Binding</A></LI>
-       <LI><SPAN class="nobr"><A 
href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20Clustered&linkCreation=true&fromPageId=13490";
 title="Create Page: WS-Notification Clustered" 
class="createlink">WS&#45;Notification Clustered<SUP><IMG class="rendericon" 
src="http://goopen.org/confluence/images/icons/plus.gif"; height="7" width="7" 
align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+       <LI><A href="ws-notification-clustered.html" title="WS-Notification 
Clustered">WS&#45;Notification Clustered</A></LI>
 </UL>
 
 

Added: incubator/servicemix/site/sm30ug/ws-notification-clustered.html
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/ws-notification-clustered.html?view=auto&rev=441997
==============================================================================
--- incubator/servicemix/site/sm30ug/ws-notification-clustered.html (added)
+++ incubator/servicemix/site/sm30ug/ws-notification-clustered.html Sun Sep 10 
13:00:52 2006
@@ -0,0 +1,170 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<HTML>
+  <HEAD>
+    <LINK type="text/css" rel="stylesheet" href="resources/site.css">
+    <SCRIPT src="resources/space.js" type="text/javascript"></SCRIPT>
+    <TITLE>
+WS-Notification Clustered
+    </TITLE>
+  <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+  <BODY onload="init()">
+
+    <!-- Banner -->
+    <DIV id="site-banner">
+    </DIV>
+
+      <DIV id="site-content">
+        <TABLE>
+        <TR>
+        <TD valign="top">
+          <DIV id="site-page">
+            <DIV class="wiki-content"><STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 
3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 
16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 
16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD 
class="ScrollbarPrevIcon"><A href="vfs-binding.html"><IMG border="0" 
align="middle" src="http://goopen.org/confluence/images/icons/back_16.gif"; 
width="16" height="16"></A></TD><TD width="33%" class="ScrollbarPrevName"><A 
href="vfs-binding.html">VFS Binding</A>&nbsp;</TD><TD width="33%" 
class="ScrollbarParent"><SUP><A href="4-examples.html"><IMG border="0" 
align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif"; 
width="8" height="8"></A></SUP><A href="4-examples.html">4. 
Examples</A></TD><TD width="33%" class="ScrollbarNextName">&nbsp;<A 
href="wsdl-first.html">WSDL First</A></TD><TD class="ScrollbarNextIcon"><A 
href="wsdl-first.html"><IMG border="0" align="middle" 
src="http://goopen.org/confluence/images/icons/forwd_16.gif"; width="16" 
height="16"></A></TD></TR></TABLE></DIV>
+<P><A name="WS-NotificationClustered-top"></A></P>
+
+<H1><A 
name="WS-NotificationClustered-WSNotificationClusteredexample"></A>WS-Notification
 Clustered example</H1>
+
+<P>This example demoonstrates the use of WS-Notification configured 
statically, whereas WS-Notification can also be used in a more dynamic way by 
sending requests the the WS-Notification Broker to create publishers and 
subscribers.</P>
+
+<P>This example uses 3 clustered ServiceMix containers:</P>
+
+<UL>
+       <LI><B>instance1</B> is part of the cluster but does not have any WS-N 
subscribers or publishers</LI>
+       <LI><B>instance2</B> hosts a WS-Notification component and a 
subscriber</LI>
+       <LI><B>instance3</B> hosts another WS-Notification component and a 
publisher triggered by a Quartz component</LI>
+</UL>
+
+
+<H2><A name="WS-NotificationClustered-Publisherside"></A>Publisher side</H2>
+
+<H3><A name="WS-NotificationClustered-Quartzcomponent"></A>Quartz 
component</H3>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec 
destinationService=<SPAN class="code-quote">&quot;test:publisher&quot;</SPAN> 
destinationEndpoint=<SPAN 
class="code-quote">&quot;endpoint&quot;</SPAN>&gt;</SPAN>
+  <SPAN class="code-tag">&lt;sm:component&gt;</SPAN>
+    <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.apache.servicemix.components.quartz.QuartzComponent&quot;</SPAN>&gt;</SPAN>
+      <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;triggers&quot;</SPAN>&gt;</SPAN>
+        <SPAN class="code-tag">&lt;map&gt;</SPAN>
+          <SPAN class="code-tag">&lt;entry&gt;</SPAN>
+            <SPAN class="code-tag">&lt;key&gt;</SPAN>
+              <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.quartz.SimpleTrigger&quot;</SPAN>&gt;</SPAN>
+                <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;repeatInterval&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;2000&quot;</SPAN>/&gt;</SPAN>
+                <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;repeatCount&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;20&quot;</SPAN>/&gt;</SPAN>
+              <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/key&gt;</SPAN>
+              <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.quartz.JobDetail&quot;</SPAN>&gt;</SPAN>
+                <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;name&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;My Example Job&quot;</SPAN>/&gt;</SPAN>
+                <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;group&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;ServiceMix&quot;</SPAN>/&gt;</SPAN>
+              <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/entry&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/map&gt;</SPAN>
+      <SPAN class="code-tag">&lt;/property&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/sm:component&gt;</SPAN>
+<SPAN class="code-tag">&lt;/sm:activationSpec&gt;</SPAN></PRE>
+</DIV></DIV>
+
+<H3><A 
name="WS-NotificationClustered-WSNotificationpublisher"></A>WS-Notification 
publisher</H3>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec 
service=<SPAN class="code-quote">&quot;test:publisher&quot;</SPAN> 
endpoint=<SPAN class="code-quote">&quot;endpoint&quot;</SPAN>&gt;</SPAN>
+  <SPAN class="code-tag">&lt;sm:component&gt;</SPAN>
+    <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.apache.servicemix.wsn.spring.PublisherComponent&quot;</SPAN>&gt;</SPAN>
+      <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;topic&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;myTopic&quot;</SPAN> /&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/sm:component&gt;</SPAN>
+<SPAN class="code-tag">&lt;/sm:activationSpec&gt;</SPAN></PRE>
+</DIV></DIV>
+
+<P>The <TT>PublisherComponent</TT> is just a proxy to the WS-Notification 
component. It receives JBI exchanges from the quartz component and send them as 
publish request to the WS-Notification broker.</P>
+
+<H3><A 
name="WS-NotificationClustered-WSNotificationcomponent"></A>WS-Notification 
component</H3>
+
+<P>The WS-Notication broker is created by the snippet below:</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec&gt;</SPAN>
+  <SPAN class="code-tag">&lt;sm:component&gt;</SPAN>
+    <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.apache.servicemix.wsn.spring.WSNSpringComponent&quot;</SPAN>&gt;</SPAN>
+      <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;connectionFactory&quot;</SPAN> ref=<SPAN 
class="code-quote">&quot;connectionFactory&quot;</SPAN> /&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/sm:component&gt;</SPAN>
+<SPAN class="code-tag">&lt;/sm:activationSpec&gt;</SPAN></PRE>
+</DIV></DIV>
+
+<P>Note that the WS-Notification broker does not mandate that publishers are 
registered on a given topic, so in this example, the 
<TT>PublisherComponent</TT> just sends a publish request to the broker which 
will forward it to all subscribers.</P>
+
+<H2><A name="WS-NotificationClustered-Subscriberside"></A>Subscriber side</H2>
+
+<H3><A name="WS-NotificationClustered-TheWSNoticationsubscription"></A>The 
WS-Notication subscription</H3>
+
+<P>The subscriber is registered statically on the WS-Notification broker using 
the following snippet:</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec&gt;</SPAN>
+  <SPAN class="code-tag">&lt;sm:component&gt;</SPAN>
+    <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.apache.servicemix.wsn.spring.WSNSpringComponent&quot;</SPAN>&gt;</SPAN>
+      <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;requests&quot;</SPAN>&gt;</SPAN>
+        <SPAN class="code-tag">&lt;list&gt;</SPAN>
+          <SPAN class="code-tag">&lt;bean class=<SPAN 
class="code-quote">&quot;org.apache.servicemix.wsn.spring.SubscribeFactoryBean&quot;</SPAN>&gt;</SPAN>
+            <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;consumer&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;http://servicemix.apache.org/demo/trace/endpoint&quot;</SPAN>
 /&gt;</SPAN>
+            <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;topic&quot;</SPAN> value=<SPAN 
class="code-quote">&quot;myTopic&quot;</SPAN> /&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/list&gt;</SPAN>
+      <SPAN class="code-tag">&lt;/property&gt;</SPAN>
+      <SPAN class="code-tag">&lt;property name=<SPAN 
class="code-quote">&quot;connectionFactory&quot;</SPAN> ref=<SPAN 
class="code-quote">&quot;connectionFactory&quot;</SPAN> /&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/sm:component&gt;</SPAN>
+<SPAN class="code-tag">&lt;/sm:activationSpec&gt;</SPAN></PRE>
+</DIV></DIV>
+
+<P>The <TT>topic</TT> property is the name of the topic from which the 
subscriber receive messages.  It has to be the same than the topic where 
messages are published.</P>
+
+<P>The <TT>consumer</TT> property indicates the JBI endpoint where exchanges 
must be sent to.  The syntax used is:</P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>namespace [sep] service [sep] endpoint
+</PRE>
+</DIV></DIV>
+<P>where <TT>sep</TT> is the separator used in the namespace uri: <TT>/</TT> 
or <TT>:</TT>.<BR>
+In our case, the value</P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>http://servicemix.apache.org/demo/trace/endpoint
+</PRE>
+</DIV></DIV>
+<P>tells the WS-Notification broker to send messages to the <TT>my:trace</TT> 
service (endpoint <TT>endpoint</TT>), which is a simple <TT>TraceComponent</TT> 
that print messages on the console.</P>
+
+<P><A href="#WS-NotificationClustered-top" title="top on WS-Notification 
Clustered">top</A></P>
+
+<STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 
3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 
16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 
16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD 
class="ScrollbarPrevIcon"><A href="vfs-binding.html"><IMG border="0" 
align="middle" src="http://goopen.org/confluence/images/icons/back_16.gif"; 
width="16" height="16"></A></TD><TD width="33%" class="ScrollbarPrevName"><A 
href="vfs-binding.html">VFS Binding</A>&nbsp;</TD><TD width="33%" 
class="ScrollbarParent"><SUP><A href="4-examples.html"><IMG border="0" 
align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif"; 
width="8" height="8"></A></SUP><A href="4-examples.html">4. 
Examples</A></TD><TD width="33%" class="ScrollbarNextName">&nbsp;<A 
href="wsdl-first.html">WSDL First</A></TD><TD class="ScrollbarNextIcon"><A 
href="wsdl-first.html"><IMG border="0" align="middle" 
src="http://goopen.org/confluence/images/icons/forwd_16.gif"; width="16" 
height="16"></A></TD></TR></TABLE></DIV></DIV>
+          </DIV>
+        </TD>
+      </TR>
+      </TABLE>     
+      </DIV>
+    </DIV>
+    <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 Sep 10, 2006
+                  
+      (<A 
href="http://goopen.org/confluence/pages/editpage.action?pageId=13570";>edit 
page</A>)
+    </DIV>
+
+  </BODY>
+
+</HTML>
\ No newline at end of file


Reply via email to