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
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=2006&originalId=14807">view
change</A>)
+ (<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> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components.html" title="Components">Components</A> > <A
href="lightweight-components.html" title="Lightweight components">Lightweight
components</A> > <A href="" title="Scripting">Scripting</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components-list.html" title="Components list">Components
list</A> > <A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A> > <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
- (<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
+ (<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> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components.html" title="Components">Components</A> > <A
href="lightweight-components.html" title="Lightweight components">Lightweight
components</A> > <A href="" title="VFS">VFS</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components-list.html" title="Components list">Components
list</A> > <A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A> > <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"><sm:activationSpec
componentName=<SPAN class="code-quote">"filePoller"</SPAN>
service=<SPAN class="code-quote">"foo:filePoller"</SPAN>
destinationService=<SPAN
class="code-quote">"foo:receiver"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.vfs.FilePoller"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"workManager"</SPAN> ref=<SPAN
class="code-quote">"workManager"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"path"</SPAN> value=<SPAN
class="code-quote">"file:/tmp/servicemix/vfs/test"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"period"</SPAN> value=<SPAN
class="code-quote">"1000"</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> </P>
<P>Then here's the sender. We'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"><sm:activationSpec
componentName=<SPAN class="code-quote">"fileSender"</SPAN>
service=<SPAN class="code-quote">"foo:fileSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.vfs.FileWriter"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"path"</SPAN> value=<SPAN
class="code-quote">"file:/tmp/servicemix/vfs/test"</SPAN>/></SPAN>
+
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"marshaler"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.util.DefaultFileMarshaler"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"fileName"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.expression.JaxenStringXPathExpression"</SPAN>></SPAN>
+ <SPAN class="code-tag"><constructor-arg value=<SPAN
class="code-quote">"concat('sample_', /sample/@id,
'.xml')"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></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>
<P> </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
- (<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
+ (<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> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components.html" title="Components">Components</A> > <A
href="lightweight-components.html" title="Lightweight components">Lightweight
components</A> > <A href="" title="WS Notification">WS
Notification</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components-list.html" title="Components list">Components
list</A> > <A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A> > <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's Guide</A> for uptodate
informations}</P></TD></TR></TABLE>
+<P>Refer to the <A href="servicemix-wsn2005.html"
title="servicemix-wsn2005">servicemix-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
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=1897&originalId=14634">view
change</A>)
+ (<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> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components.html" title="Components">Components</A> > <A
href="lightweight-components.html" title="Lightweight components">Lightweight
components</A> > <A href="" title="WSIF">WSIF</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A
href="home.html" title="Home">Home</A> > <A
href="documentation.html"
title="Documentation">Documentation</A> > <A
href="components-list.html" title="Components list">Components
list</A> > <A href="lightweight-components.html"
title="Lightweight components">Lightweight components</A> > <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"><service
name='CheckServiceAvailability'></SPAN>
+ <SPAN class="code-tag"><port name='CheckAvailabilityPort'
binding='tns:CheckAvailabilityJMSBinding'></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- ActiveMQ
configuration --></SPAN></SPAN>
+ <jms:address destinationStyle=<SPAN
class="code-quote">"queue"</SPAN>
+ jndiDestinationName=<SPAN
class="code-quote">"dynamicQueues/test.org.servicemix.example.wsif"</SPAN>
+ jndiConnectionFactoryName=<SPAN
class="code-quote">"ConnectionFactory"</SPAN>
+ initialContextFactory=<SPAN
class="code-quote">"org.activemq.jndi.ActiveMQInitialContextFactory"</SPAN>
+ jndiProviderURL=<SPAN
class="code-quote">"tcp://localhost:61626"</SPAN>/>
+ <SPAN class="code-tag"></port></SPAN>
+<SPAN class="code-tag"></service></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><jms:address> 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
"checkAvailability" service via the ServiceMix NMR. In other words,
it needs to have "checkAvailability" set as its
"destination" 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">"zipCode"</SPAN>, <SPAN
class="code-quote">"10505"</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">"result"</SPAN>);
+<SPAN class="code-object">System</SPAN>.out.println(<SPAN
class="code-quote">"Found value: "</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"><message
name='checkAvailabilityRequest'></SPAN>
+ <SPAN class="code-tag"><part name='zipCode'
type='xsd:string'/></SPAN>
+<SPAN class="code-tag"></message></SPAN>
+
+<SPAN class="code-tag"><message
name='checkAvailabilityResponse'></SPAN>
+ <SPAN class="code-tag"><part name='result'
type='xsd:string'/></SPAN>
+<SPAN class="code-tag"></message></SPAN>
+
+<SPAN class="code-tag"><portType
name='CheckAvailabilityPortType'></SPAN>
+ <SPAN class="code-tag"><operation
name='checkAvailability'></SPAN>
+ <SPAN class="code-tag"><input
message='tns:checkAvailabilityRequest'/></SPAN>
+ <SPAN class="code-tag"><output
message='tns:checkAvailabilityResponse'/></SPAN>
+ <SPAN class="code-tag"></operation></SPAN>
+<SPAN class="code-tag"></portType></SPAN>
+
+<SPAN class="code-tag"><binding
name='CheckAvailabilityJMSBinding'
type='tns:CheckAvailabilityPortType'></SPAN>
+ <SPAN class="code-tag"><jms:binding type=<SPAN
class="code-quote">"TextMessage"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><format:typeMapping encoding=<SPAN
class="code-quote">"XML"</SPAN> style=<SPAN
class="code-quote">"Java"</SPAN>></SPAN>
+ <SPAN class="code-tag"><format:typeMap typeName=<SPAN
class="code-quote">"xsd:string"</SPAN> formatType=<SPAN
class="code-quote">"java.lang.String"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></format:typeMapping></SPAN>
+ <SPAN class="code-tag"><operation
name='checkAvailability'></SPAN>
+ <SPAN class="code-tag"><input></SPAN>
+ <SPAN class="code-tag"><jms:input parts=<SPAN
class="code-quote">"zipCode"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><jms:property message=<SPAN
class="code-quote">"Request"</SPAN> part=<SPAN
class="code-quote">"myInt"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><jms:propertyValue name=<SPAN
class="code-quote">"myLiteralString"</SPAN> type=<SPAN
class="code-quote">"xsd:string"</SPAN> value=<SPAN
class="code-quote">"Hello World"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></input></SPAN>
+ <SPAN class="code-tag"><output></SPAN>
+ <SPAN class="code-tag"><jms:output parts=<SPAN
class="code-quote">"result"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></output></SPAN>
+ <SPAN class="code-tag"></operation></SPAN>
+<SPAN class="code-tag"></binding></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
- (<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
+ (<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>