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-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-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-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-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-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> </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"> <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"><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>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.quartz.QuartzComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"triggers"</SPAN>></SPAN>
+ <SPAN class="code-tag"><map></SPAN>
+ <SPAN class="code-tag"><entry></SPAN>
+ <SPAN class="code-tag"><key></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.quartz.SimpleTrigger"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"repeatInterval"</SPAN> value=<SPAN
class="code-quote">"2000"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"repeatCount"</SPAN> value=<SPAN
class="code-quote">"20"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></key></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.quartz.JobDetail"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"name"</SPAN> value=<SPAN
class="code-quote">"My Example Job"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"group"</SPAN> value=<SPAN
class="code-quote">"ServiceMix"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></entry></SPAN>
+ <SPAN class="code-tag"></map></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></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"><sm:activationSpec
service=<SPAN class="code-quote">"test:publisher"</SPAN>
endpoint=<SPAN class="code-quote">"endpoint"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.wsn.spring.PublisherComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"topic"</SPAN> value=<SPAN
class="code-quote">"myTopic"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></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"><sm:activationSpec></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.wsn.spring.WSNSpringComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN> ref=<SPAN
class="code-quote">"connectionFactory"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></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"><sm:activationSpec></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.wsn.spring.WSNSpringComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"requests"</SPAN>></SPAN>
+ <SPAN class="code-tag"><list></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.wsn.spring.SubscribeFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"consumer"</SPAN> value=<SPAN
class="code-quote">"http://servicemix.apache.org/demo/trace/endpoint"</SPAN>
/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"topic"</SPAN> value=<SPAN
class="code-quote">"myTopic"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></list></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN> ref=<SPAN
class="code-quote">"connectionFactory"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></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> </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"> <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