servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r471541 - in /incubator/servicemix/site/main: lightweight-components.html saaj.html scripting.html vfs.html ws-notification.html wsif.html
Date Sun, 05 Nov 2006 21:58:31 GMT
Author: chirino
Date: Sun Nov  5 13:58:31 2006
New Revision: 471541

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

Modified:
    incubator/servicemix/site/main/lightweight-components.html
    incubator/servicemix/site/main/saaj.html
    incubator/servicemix/site/main/scripting.html
    incubator/servicemix/site/main/vfs.html
    incubator/servicemix/site/main/ws-notification.html
    incubator/servicemix/site/main/wsif.html

Modified: incubator/servicemix/site/main/lightweight-components.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/lightweight-components.html?view=diff&rev=471541&r1=471540&r2=471541
==============================================================================
--- incubator/servicemix/site/main/lightweight-components.html (original)
+++ incubator/servicemix/site/main/lightweight-components.html Sun Nov  5 13:58:31 2006
@@ -130,73 +130,73 @@
                           <a href="http://goopen.org/confluence/display/SM/Component+helper+classes"
title="Component helper classes">Component helper classes</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Email" title="Email">Email</a>
+                          <a href="http://goopen.org/confluence/display/SM/WSIF" title="WSIF">WSIF</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/FTP" title="FTP">FTP</a>
+                          <a href="http://goopen.org/confluence/display/SM/XSLT" title="XSLT">XSLT</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Groovy" title="Groovy">Groovy</a>
+                          <a href="http://goopen.org/confluence/display/SM/XFire" title="XFire">XFire</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Jabber" title="Jabber">Jabber</a>
+                          <a href="http://goopen.org/confluence/display/SM/Validation"
title="Validation">Validation</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/JAX+WS" title="JAX
WS">JAX WS</a>
+                          <a href="http://goopen.org/confluence/display/SM/RSS" title="RSS">RSS</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/JCA" title="JCA">JCA</a>
+                          <a href="http://goopen.org/confluence/display/SM/Cache" title="Cache">Cache</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/POJO+support"
title="POJO support">POJO support</a>
+                          <a href="http://goopen.org/confluence/display/SM/Drools" title="Drools">Drools</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Reflection"
title="Reflection">Reflection</a>
+                          <a href="http://goopen.org/confluence/display/SM/Email" title="Email">Email</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/VFS" title="VFS">VFS</a>
+                          <a href="http://goopen.org/confluence/display/SM/File" title="File">File</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Scripting"
title="Scripting">Scripting</a>
+                          <a href="http://goopen.org/confluence/display/SM/FTP" title="FTP">FTP</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/SAAJ" title="SAAJ">SAAJ</a>
+                          <a href="http://goopen.org/confluence/display/SM/Groovy" title="Groovy">Groovy</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/WSIF" title="WSIF">WSIF</a>
+                          <a href="http://goopen.org/confluence/display/SM/HTTP" title="HTTP">HTTP</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Drools" title="Drools">Drools</a>
+                          <a href="http://goopen.org/confluence/display/SM/Jabber" title="Jabber">Jabber</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Cache" title="Cache">Cache</a>
+                          <a href="http://goopen.org/confluence/display/SM/JAX+WS" title="JAX
WS">JAX WS</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/XSLT" title="XSLT">XSLT</a>
+                          <a href="http://goopen.org/confluence/display/SM/JCA" title="JCA">JCA</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/HTTP" title="HTTP">HTTP</a>
+                          <a href="http://goopen.org/confluence/display/SM/JMS" title="JMS">JMS</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/JMS" title="JMS">JMS</a>
+                          <a href="http://goopen.org/confluence/display/SM/POJO+support"
title="POJO support">POJO support</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/XFire" title="XFire">XFire</a>
+                          <a href="http://goopen.org/confluence/display/SM/Quartz" title="Quartz">Quartz</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Validation"
title="Validation">Validation</a>
+                          <a href="http://goopen.org/confluence/display/SM/Reflection"
title="Reflection">Reflection</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/Quartz" title="Quartz">Quartz</a>
+                          <a href="http://goopen.org/confluence/display/SM/SAAJ" title="SAAJ">SAAJ</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/File" title="File">File</a>
+                          <a href="http://goopen.org/confluence/display/SM/Scripting"
title="Scripting">Scripting</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/WS+Notification"
title="WS Notification">WS Notification</a>
+                          <a href="http://goopen.org/confluence/display/SM/VFS" title="VFS">VFS</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/RSS" title="RSS">RSS</a>
+                          <a href="http://goopen.org/confluence/display/SM/WS+Notification"
title="WS Notification">WS Notification</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
                       </div>

Modified: incubator/servicemix/site/main/saaj.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/saaj.html?view=diff&rev=471541&r1=471540&r2=471541
==============================================================================
--- incubator/servicemix/site/main/saaj.html (original)
+++ incubator/servicemix/site/main/saaj.html Sun Nov  5 13:58:31 2006
@@ -151,7 +151,7 @@
 
 <H3><A name="SAAJ-AdditionalResources"></A>Additional Resources</H3>
 
-<P>For a complete example, using SAAJ and incorporating the above code snippets, please
see the <SPAN class="nobr"><A href="http://www.servicemix.org/HTTP%20binding" title="Visit
page outside Confluence" rel="nofollow">HTTP Binding Example<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN>.
+<P>For a complete example, using SAAJ and incorporating the above code snippets, please
see the <A href="http-binding.html" title="HTTP binding">HTTP Binding Example</A>.
 <BR clear="all">
 For details on JBI InOut message exchanges, please <SPAN class="nobr"><A href="http://www.jcp.org/en/jsr/detail?id=208"
title="Visit page outside Confluence" rel="nofollow">JSR 208<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN>.</P></DIV>
           
@@ -164,7 +164,7 @@
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
     last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Nov 08, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2006&originalId=14807">view
change</A>)
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2006&originalId=14808">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=2006">edit
page</A>)
     </DIV>

Modified: incubator/servicemix/site/main/scripting.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/scripting.html?view=diff&rev=471541&r1=471540&r2=471541
==============================================================================
--- incubator/servicemix/site/main/scripting.html (original)
+++ incubator/servicemix/site/main/scripting.html Sun Nov  5 13:58:31 2006
@@ -36,7 +36,7 @@
         <TR>
           <TD align="left" valign="middle" nowrap="">
             <DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components.html"
title="Components">Components</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="Scripting">Scripting</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components-list.html"
title="Components list">Components list</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="Scripting">Scripting</A>
             </DIV>
           </TD>
           <TD align="right" valign="middle" nowrap="">
@@ -113,12 +113,11 @@
 <!--          
             <div class="pagetitle">Scripting</div>
 -->
-            <DIV class="wiki-content">
-<P>ServiceMix has a ScriptComponent which allows you to easily script In or InOut message
exchanges using any <SPAN class="nobr"><A href="http://www.jcp.org/en/jsr/detail?id=223"
title="Visit page outside Confluence" rel="nofollow">JSR 223<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN> compliant scripting engine such as
<SPAN class="nobr"><A href="http://groovy.codehaus.org/" title="Visit page outside
Confluence" rel="nofollow">Groovy<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN>,
JavaScript, Jython etc.</P>
+            <DIV class="wiki-content"><P>ServiceMix has a ScriptComponent which
allows you to easily script In or InOut message exchanges using any <SPAN class="nobr"><A
href="http://www.jcp.org/en/jsr/detail?id=223" title="Visit page outside Confluence" rel="nofollow">JSR
223<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN>
compliant scripting engine such as <SPAN class="nobr"><A href="http://groovy.codehaus.org/"
title="Visit page outside Confluence" rel="nofollow">Groovy<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN>, JavaScript, Jython etc.</P>
 
 <P>You can provide a custom component by deriving from this component, or just deploy
it and configure the script language name along with the script.</P>
 
-<P>There are a few <SPAN class="nobr"><A href="http://svn.servicemix.codehaus.org/branches/servicemix-1.1/base/src/test/resources/org/servicemix/client/example.xml?view=markup"
title="Visit page outside Confluence" rel="nofollow">examples<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN> using the <A href="groovy.html"
title="Groovy">Groovy support</A>.</P>
+<P>There are a few <SPAN class="nobr"><A href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/core/servicemix-core/src/test/resources/org/apache/servicemix/client/example.xml"
title="Visit page outside Confluence" rel="nofollow">examples<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN> using the <A href="groovy.html"
title="Groovy">Groovy support</A>.</P>
 
 <H3><A name="Scripting-Variablesavailable"></A>Variables available</H3>
 
@@ -159,8 +158,8 @@
     </DIV>
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
-    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on May 11, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1976&originalId=5201">view
change</A>)
+    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Nov 08, 2006
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1976&originalId=14809">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=1976">edit
page</A>)
     </DIV>

Modified: incubator/servicemix/site/main/vfs.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/vfs.html?view=diff&rev=471541&r1=471540&r2=471541
==============================================================================
--- incubator/servicemix/site/main/vfs.html (original)
+++ incubator/servicemix/site/main/vfs.html Sun Nov  5 13:58:31 2006
@@ -36,7 +36,7 @@
         <TR>
           <TD align="left" valign="middle" nowrap="">
             <DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components.html"
title="Components">Components</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="VFS">VFS</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components-list.html"
title="Components list">Components list</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="VFS">VFS</A>
             </DIV>
           </TD>
           <TD align="right" valign="middle" nowrap="">
@@ -113,17 +113,40 @@
 <!--          
             <div class="pagetitle">VFS</div>
 -->
-            <DIV class="wiki-content">
-<P>This component uses the <SPAN class="nobr"><A href="http://jakarta.apache.org/commons/vfs.html"
title="Visit page outside Confluence" rel="nofollow">Jakarta Commons Net<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> library
which provides access to file systems, jars/zips/bzip2, temporary files, WebDAV, Samba (CIFS),
HTTP, HTTPS, FTP and SFTP among others.</P>
+            <DIV class="wiki-content"><P>This component uses the <SPAN class="nobr"><A
href="http://jakarta.apache.org/commons/vfs.html" title="Visit page outside Confluence" rel="nofollow">Jakarta
Commons Net<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN>
library which provides access to file systems, jars/zips/bzip2, temporary files, WebDAV, Samba
(CIFS), HTTP, HTTPS, FTP and SFTP among others.</P>
 
 <P>It works similarly to the <A href="ftp.html" title="FTP">FTP</A> component
where it will write files to a directory (on the virtual file system in this case) and poll
for files in a file system.</P>
 
 <P>Here is an example of the component configured. First the poller as its much simpler</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec componentName=<SPAN
class="code-quote">&quot;filePoller&quot;</SPAN> service=<SPAN class="code-quote">&quot;foo:filePoller&quot;</SPAN>
destinationService=<SPAN class="code-quote">&quot;foo:receiver&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.vfs.FilePoller&quot;</SPAN>&gt;</SPAN>
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;workManager&quot;</SPAN>
ref=<SPAN class="code-quote">&quot;workManager&quot;</SPAN>/&gt;</SPAN>
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;path&quot;</SPAN>
value=<SPAN class="code-quote">&quot;file:/tmp/servicemix/vfs/test&quot;</SPAN>/&gt;</SPAN>
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;period&quot;</SPAN>
value=<SPAN class="code-quote">&quot;1000&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>&nbsp;</P>
 
 <P>Then here&apos;s the sender. We&apos;re using a FileMarshaler here to turn
JBI messages into files with an expression using XPath from the message content to generate
the file name in the directory.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec componentName=<SPAN
class="code-quote">&quot;fileSender&quot;</SPAN> service=<SPAN class="code-quote">&quot;foo:fileSender&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.vfs.FileWriter&quot;</SPAN>&gt;</SPAN>
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;path&quot;</SPAN>
value=<SPAN class="code-quote">&quot;file:/tmp/servicemix/vfs/test&quot;</SPAN>/&gt;</SPAN>
+
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;marshaler&quot;</SPAN>&gt;</SPAN>
+      <SPAN class="code-tag">&lt;bean class=<SPAN class="code-quote">&quot;org.apache.servicemix.components.util.DefaultFileMarshaler&quot;</SPAN>&gt;</SPAN>
+        <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;fileName&quot;</SPAN>&gt;</SPAN>
+          <SPAN class="code-tag">&lt;bean class=<SPAN class="code-quote">&quot;org.apache.servicemix.expression.JaxenStringXPathExpression&quot;</SPAN>&gt;</SPAN>
+            <SPAN class="code-tag">&lt;constructor-arg value=<SPAN class="code-quote">&quot;concat(&apos;sample_&apos;,
/sample/@id, &apos;.xml&apos;)&quot;</SPAN>/&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/property&gt;</SPAN>
+      <SPAN class="code-tag">&lt;/bean&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>
 <P>&nbsp;</P></DIV>
           
                   </DIV>
@@ -134,8 +157,8 @@
     </DIV>
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
-    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on May 11, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2060&originalId=5197">view
change</A>)
+    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Nov 08, 2006
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2060&originalId=14810">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=2060">edit
page</A>)
     </DIV>

Modified: incubator/servicemix/site/main/ws-notification.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/ws-notification.html?view=diff&rev=471541&r1=471540&r2=471541
==============================================================================
--- incubator/servicemix/site/main/ws-notification.html (original)
+++ incubator/servicemix/site/main/ws-notification.html Sun Nov  5 13:58:31 2006
@@ -36,7 +36,7 @@
         <TR>
           <TD align="left" valign="middle" nowrap="">
             <DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components.html"
title="Components">Components</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="WS Notification">WS Notification</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components-list.html"
title="Components list">Components list</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="WS Notification">WS Notification</A>
             </DIV>
           </TD>
           <TD align="right" valign="middle" nowrap="">
@@ -114,7 +114,7 @@
             <div class="pagetitle">WS Notification</div>
 -->
             <DIV class="wiki-content"><TABLE cellpadding="5" width="85%" cellspacing="8px"
class="warningMacro" border="0" align="center"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD
valign="top"><IMG src="http://goopen.org/confluence/images/icons/emoticons/forbidden.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B class="strong">Outdated
page</B><BR>
-<P>Refer to the <A href="servicemix-wsn2005.html" title="servicemix-wsn2005">User&apos;s
Guide</A> for uptodate informations}</P></TD></TR></TABLE>
+<P>Refer to the <A href="servicemix-wsn2005.html" title="servicemix-wsn2005">servicemix&#45;wsn2005</A>
for updated informations</P></TD></TR></TABLE>
 
 <H3><A name="WSNotification-SOAPstacksandXMLmarshaling"></A>SOAP stacks
and XML marshaling</H3>
 
@@ -175,7 +175,7 @@
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
     last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Nov 08, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1897&originalId=14634">view
change</A>)
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1897&originalId=14811">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=1897">edit
page</A>)
     </DIV>

Modified: incubator/servicemix/site/main/wsif.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/wsif.html?view=diff&rev=471541&r1=471540&r2=471541
==============================================================================
--- incubator/servicemix/site/main/wsif.html (original)
+++ incubator/servicemix/site/main/wsif.html Sun Nov  5 13:58:31 2006
@@ -36,7 +36,7 @@
         <TR>
           <TD align="left" valign="middle" nowrap="">
             <DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components.html"
title="Components">Components</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="WSIF">WSIF</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components-list.html"
title="Components list">Components list</A>&nbsp;&gt;&nbsp;<A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A>&nbsp;&gt;&nbsp;<A
href="" title="WSIF">WSIF</A>
             </DIV>
           </TD>
           <TD align="right" valign="middle" nowrap="">
@@ -191,7 +191,19 @@
 <P>The following snippet is from the <TT>servicemix.xml</TT> file. Note:
that the WSIFBinding class has the <TT>service.wsdl</TT> file as a property.</P>
 
 <P>Following is an example of how to enable a service to be exposed over a JMS topic
or queue. This is a snippet of code from the <TT>service.wsdl</TT> file. It shows
how to configure the JMS binding:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;service name=&apos;CheckServiceAvailability&apos;&gt;</SPAN>
+  <SPAN class="code-tag">&lt;port name=&apos;CheckAvailabilityPort&apos;
 binding=&apos;tns:CheckAvailabilityJMSBinding&apos;&gt;</SPAN>
+
+    <SPAN class="code-tag"><SPAN class="code-comment">&lt;!-- ActiveMQ configuration
--&gt;</SPAN></SPAN>
+    &lt;jms:address destinationStyle=<SPAN class="code-quote">&quot;queue&quot;</SPAN>
+      jndiDestinationName=<SPAN class="code-quote">&quot;dynamicQueues/test.org.servicemix.example.wsif&quot;</SPAN>
+      jndiConnectionFactoryName=<SPAN class="code-quote">&quot;ConnectionFactory&quot;</SPAN>
+      initialContextFactory=<SPAN class="code-quote">&quot;org.activemq.jndi.ActiveMQInitialContextFactory&quot;</SPAN>
+      jndiProviderURL=<SPAN class="code-quote">&quot;tcp://localhost:61626&quot;</SPAN>/&gt;
+  <SPAN class="code-tag">&lt;/port&gt;</SPAN>
+<SPAN class="code-tag">&lt;/service&gt;</SPAN></PRE>
+</DIV></DIV>
 <P>Here are descriptions of the properties found in the <TT>service.wsdl</TT>
file. The descriptions are quoted from the <SPAN class="nobr"><A href="http://cvs.apache.org/viewcvs/~checkout~/ws-wsif/java/doc/wsdl_extensions/jms_bindings.html"
title="Visit page outside Confluence" rel="nofollow">WSDL Bindings for JMS<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> web page:</P>
 <UL class="alternate" type="square">
 	<LI>&lt;jms:address&gt; describes a target port that is accessible via JMS.</LI>
@@ -208,9 +220,51 @@
 <P>The JBI standard requires encoding WSDL 1.1 parts using an XML encoding mechanism.
ServiceMix supports this requirement. However, in addition ServicMix also allows the message
properties, of an NMR message, to use the named parts of the <TT>service.wsdl</TT>
file, to avoid unnecessary XML marshalling.</P>
 
 <P>A Java client can be programmed as an alternative way of invoking the web service,
in lieu of a web form. The following is a Java client example using the ServiceMix <A href="client-api.html"
title="Client API">Client API</A> in a WSIF approach, passing in and fetching out
named parameters. This Java client is performing the role originally assigned to the HTTP
Client above. It also needs to be configured (not shown) to communicate to the &quot;checkAvailability&quot;
service via the ServiceMix NMR. In other words, it needs to have &quot;checkAvailability&quot;
set as its &quot;destination&quot; for the NMR messages it sends.</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">InOut exchange = client.createInOutExchange();
 
-<P>The previous Java code works against the given WSDL 1.1 <TT>service.wsdl</TT>
file using its named parts:</P>
+exchange.getInMessage().setProperty(<SPAN class="code-quote">&quot;zipCode&quot;</SPAN>,
<SPAN class="code-quote">&quot;10505&quot;</SPAN>);
+client.sendSync(exchange);
+
+NormalizedMessage out = exchange.getOutMessage();
+<SPAN class="code-object">String</SPAN> result = (<SPAN class="code-object">String</SPAN>)
out.getProperty(<SPAN class="code-quote">&quot;result&quot;</SPAN>);
 
+<SPAN class="code-object">System</SPAN>.out.println(<SPAN class="code-quote">&quot;Found
value: &quot;</SPAN> + result);</PRE>
+</DIV></DIV>
+<P>The previous Java code works against the given WSDL 1.1 <TT>service.wsdl</TT>
file using its named parts:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;message name=&apos;checkAvailabilityRequest&apos;&gt;</SPAN>
+  <SPAN class="code-tag">&lt;part name=&apos;zipCode&apos; type=&apos;xsd:string&apos;/&gt;</SPAN>
+<SPAN class="code-tag">&lt;/message&gt;</SPAN>
+
+<SPAN class="code-tag">&lt;message name=&apos;checkAvailabilityResponse&apos;&gt;</SPAN>
+  <SPAN class="code-tag">&lt;part name=&apos;result&apos; type=&apos;xsd:string&apos;/&gt;</SPAN>
+<SPAN class="code-tag">&lt;/message&gt;</SPAN>
+
+<SPAN class="code-tag">&lt;portType name=&apos;CheckAvailabilityPortType&apos;&gt;</SPAN>
+  <SPAN class="code-tag">&lt;operation name=&apos;checkAvailability&apos;&gt;</SPAN>
+    <SPAN class="code-tag">&lt;input message=&apos;tns:checkAvailabilityRequest&apos;/&gt;</SPAN>
+    <SPAN class="code-tag">&lt;output message=&apos;tns:checkAvailabilityResponse&apos;/&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/operation&gt;</SPAN>
+<SPAN class="code-tag">&lt;/portType&gt;</SPAN>
+
+<SPAN class="code-tag">&lt;binding name=&apos;CheckAvailabilityJMSBinding&apos;
type=&apos;tns:CheckAvailabilityPortType&apos;&gt;</SPAN>
+  <SPAN class="code-tag">&lt;jms:binding type=<SPAN class="code-quote">&quot;TextMessage&quot;</SPAN>/&gt;</SPAN>
+  <SPAN class="code-tag">&lt;format:typeMapping encoding=<SPAN class="code-quote">&quot;XML&quot;</SPAN>
style=<SPAN class="code-quote">&quot;Java&quot;</SPAN>&gt;</SPAN>
+    <SPAN class="code-tag">&lt;format:typeMap typeName=<SPAN class="code-quote">&quot;xsd:string&quot;</SPAN>
formatType=<SPAN class="code-quote">&quot;java.lang.String&quot;</SPAN>/&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/format:typeMapping&gt;</SPAN>
+  <SPAN class="code-tag">&lt;operation name=&apos;checkAvailability&apos;&gt;</SPAN>
+    <SPAN class="code-tag">&lt;input&gt;</SPAN>
+      <SPAN class="code-tag">&lt;jms:input parts=<SPAN class="code-quote">&quot;zipCode&quot;</SPAN>/&gt;</SPAN>
+      <SPAN class="code-tag">&lt;jms:property message=<SPAN class="code-quote">&quot;Request&quot;</SPAN>
part=<SPAN class="code-quote">&quot;myInt&quot;</SPAN>/&gt;</SPAN>
+      <SPAN class="code-tag">&lt;jms:propertyValue name=<SPAN class="code-quote">&quot;myLiteralString&quot;</SPAN>
type=<SPAN class="code-quote">&quot;xsd:string&quot;</SPAN> value=<SPAN
class="code-quote">&quot;Hello World&quot;</SPAN>/&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/input&gt;</SPAN>
+    <SPAN class="code-tag">&lt;output&gt;</SPAN>
+      <SPAN class="code-tag">&lt;jms:output parts=<SPAN class="code-quote">&quot;result&quot;</SPAN>/&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/output&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/operation&gt;</SPAN>
+<SPAN class="code-tag">&lt;/binding&gt;</SPAN></PRE>
+</DIV></DIV>
 
 <H3><A name="WSIF-RelatedDocumentation"></A>Related Documentation</H3>
 
@@ -238,8 +292,8 @@
     </DIV>
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
-    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Aug 08, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2115&originalId=9591">view
change</A>)
+    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Nov 08, 2006
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2115&originalId=14812">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=2115">edit
page</A>)
     </DIV>



Mime
View raw message