Author: chirino
Date: Sun Nov 5 13:39:52 2006
New Revision: 471538
URL: http://svn.apache.org/viewvc?view=rev&rev=471538
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/main/http.html
incubator/servicemix/site/main/jabber.html
incubator/servicemix/site/main/jax-ws.html
incubator/servicemix/site/main/jca.html
incubator/servicemix/site/main/jms.html
Modified: incubator/servicemix/site/main/http.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/http.html?view=diff&rev=471538&r1=471537&r2=471538
==============================================================================
--- incubator/servicemix/site/main/http.html (original)
+++ incubator/servicemix/site/main/http.html Sun Nov 5 13:39:52 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="HTTP">HTTP</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="HTTP">HTTP</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -121,23 +121,59 @@
<H3><A name="HTTP-ClientsideHTTPinvocation"></A>Client side HTTP
invocation</H3>
<P>This JBI component uses <SPAN class="nobr"><A
href="http://jakarta.apache.org/commons/httpclient/" title="Visit page outside
Confluence" rel="nofollow">Commons HttpClient<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> to perform
client side HTTP invocations. Here is a typical example of a JBI component
which performs a HTTP invocation when it is invoked.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"httpSender"</SPAN>
service=<SPAN class="code-quote">"foo:httpSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.http.HttpInvoker"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"url"</SPAN> value=<SPAN
class="code-quote">"http://localhost:8912"</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>
<H3><A name="HTTP-ServersideHTTPbinding"></A>Server side HTTP binding</H3>
<P>This JBI component will expose another JBI component over HTTP on some port
and HTTP configuration. We use an embedded <SPAN class="nobr"><A
href="http://mortbay.com/jetty/index.html" title="Visit page outside
Confluence" rel="nofollow">Jetty<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> component for
this, though we also have a <SPAN class="nobr"><A
href="http://servicemix.codehaus.org/maven/apidocs/org/servicemix/components/http/BindingServlet.html"
title="Visit page outside Confluence" rel="nofollow">BindingServlet<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>
which can be configured from inside any web.xml in a Servlet WAR.</P>
<P>Here's an example of configuring the default HTTP connector.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"httpReceiver"</SPAN>
service=<SPAN class="code-quote">"foo:httpBinding"</SPAN>
destinationService=<SPAN
class="code-quote">"foo:httpSender2"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.http.HttpConnector"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"host"</SPAN> value=<SPAN
class="code-quote">"localhost"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"port"</SPAN> value=<SPAN
class="code-quote">"8912"</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>
<H2><A name="HTTP-UsingHTTPbindinginaWAR"></A>Using HTTP binding in a WAR</H2>
<P>You may wish to configure ServiceMix's HTTP binding inside a WAR. To
do this you need to register one or more instances of the SpringBindingServlet
in your web.xml then map the servlet to the URI you wish.</P>
<P>Here's an example</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><servlet></SPAN>
+ <SPAN class="code-tag"><servlet-name></SPAN>BindingServlet<SPAN
class="code-tag"></servlet-name></SPAN>
+ <SPAN class="code-tag"><servlet-class></SPAN>
+ org.apache.servicemix.components.http.SpringBindingServlet
+ <SPAN class="code-tag"></servlet-class></SPAN>
+ <SPAN class="code-tag"><init-param></SPAN>
+ <SPAN class="code-tag"><param-name></SPAN>endpoint<SPAN
class="code-tag"></param-name></SPAN>
+ <SPAN class="code-tag"><param-value></SPAN>httpBinding<SPAN
class="code-tag"></param-value></SPAN>
+ <SPAN class="code-tag"></init-param></SPAN>
+ <SPAN class="code-tag"><load-on-startup></SPAN>1<SPAN
class="code-tag"></load-on-startup></SPAN>
+<SPAN class="code-tag"></servlet></SPAN>
+
+<SPAN class="code-tag"><servlet-mapping></SPAN>
+ <SPAN class="code-tag"><servlet-name></SPAN>BindingServlet<SPAN
class="code-tag"></servlet-name></SPAN>
+ <SPAN class="code-tag"><url-pattern></SPAN>/jbi/*<SPAN
class="code-tag"></url-pattern></SPAN>
+<SPAN class="code-tag"></servlet-mapping></SPAN></PRE>
+</DIV></DIV>
<P>Notice that the web.xml then refers to the endpoint name <B>httpBinding</B>
in the ServiceMix configuration file. e.g. this component</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"httpBinding"</SPAN>
service=<SPAN class="code-quote">"foo:httpBinding"</SPAN>
destinationService=<SPAN
class="code-quote">"foo:echo"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.http.HttpInOutBinding"</SPAN>
/></SPAN>
+ <SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></SPAN></PRE>
+</DIV></DIV>
<H3><A name="HTTP-ExampleofusingtheHTTPbindinginaWAR"></A>Example of using the
HTTP binding in a WAR</H3>
@@ -168,8 +204,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=2083&originalId=9588">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=2083&originalId=14798">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=2083">edit
page</A>)
</DIV>
Modified: incubator/servicemix/site/main/jabber.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/jabber.html?view=diff&rev=471538&r1=471537&r2=471538
==============================================================================
--- incubator/servicemix/site/main/jabber.html (original)
+++ incubator/servicemix/site/main/jabber.html Sun Nov 5 13:39:52 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="Jabber">Jabber</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="Jabber">Jabber</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -113,24 +113,52 @@
<!--
<div class="pagetitle">Jabber</div>
-->
- <DIV class="wiki-content">
-<P>We support the <SPAN class="nobr"><A href="http://jabber.org/" title="Visit
page outside Confluence" rel="nofollow">Jabber network<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> via
the <SPAN class="nobr"><A href="http://xmpp.org/" title="Visit page outside
Confluence" rel="nofollow">XMPP protocol<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 <SPAN
class="nobr"><A href="http://www.jivesoftware.org/smack/" title="Visit page
outside Confluence" rel="nofollow">Smack<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> client for
Java.</P>
+ <DIV class="wiki-content"><P>We support the <SPAN class="nobr"><A
href="http://jabber.org/" title="Visit page outside Confluence"
rel="nofollow">Jabber network<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> via the <SPAN
class="nobr"><A href="http://xmpp.org/" title="Visit page outside Confluence"
rel="nofollow">XMPP protocol<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 <SPAN
class="nobr"><A href="http://www.jivesoftware.org/smack/" title="Visit page
outside Confluence" rel="nofollow">Smack<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> client for
Java.</P>
<H3><A name="Jabber-SendingmessagesfromJBItoJabber"></A>Sending messages from
JBI to Jabber</H3>
<P>Both individual based and group chat mechanisms are supported. Here's
an example regular chat sender component.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJabberSender"</SPAN>
service=<SPAN class="code-quote">"foo:myJabberSender"</SPAN>
endpoint=<SPAN class="code-quote">"myJabberSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.jabber.JabberChatSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"host"</SPAN> value=<SPAN
class="code-quote">"localhost"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"port"</SPAN> value=<SPAN
class="code-quote">"6222"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"user"</SPAN> value=<SPAN
class="code-quote">"[EMAIL PROTECTED]"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"password"</SPAN> value=<SPAN
class="code-quote">"rocks"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"participant"</SPAN> value=<SPAN
class="code-quote">"[EMAIL PROTECTED]"</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>Notice how you specify a participant for the person to talk to.</P>
<P>For group chats you specify a room</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJabberSender"</SPAN>
service=<SPAN class="code-quote">"foo:myJabberSender"</SPAN>
endpoint=<SPAN class="code-quote">"myJabberSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.jabber.JabberGroupChatSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"host"</SPAN> value=<SPAN
class="code-quote">"localhost"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"port"</SPAN> value=<SPAN
class="code-quote">"6222"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"user"</SPAN> value=<SPAN
class="code-quote">"[EMAIL PROTECTED]"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"password"</SPAN> value=<SPAN
class="code-quote">"rocks"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"room"</SPAN> value=<SPAN
class="code-quote">"servicemixroom"</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>
<H3><A
name="Jabber-ReceivingmessagesfromJabberandsendingthemintoJBItoberoutedbytheNMR"></A>Receiving
messages from Jabber and sending them into JBI to be routed by the NMR</H3>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJabberReceiver"</SPAN>
service=<SPAN class="code-quote">"foo:myJabberReceiver"</SPAN>
endpoint=<SPAN class="code-quote">"myJabberReceiver"</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.jabber.JabberReceiver"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"host"</SPAN> value=<SPAN
class="code-quote">"localhost"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"port"</SPAN> value=<SPAN
class="code-quote">"6222"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"user"</SPAN> value=<SPAN
class="code-quote">"[EMAIL PROTECTED]"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"password"</SPAN> value=<SPAN
class="code-quote">"rocks"</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></DIV>
</DIV>
@@ -141,8 +169,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=2090&originalId=5188">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=2090&originalId=14799">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=2090">edit
page</A>)
</DIV>
Modified: incubator/servicemix/site/main/jax-ws.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/jax-ws.html?view=diff&rev=471538&r1=471537&r2=471538
==============================================================================
--- incubator/servicemix/site/main/jax-ws.html (original)
+++ incubator/servicemix/site/main/jax-ws.html Sun Nov 5 13:39:52 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="JAX WS">JAX WS</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="JAX WS">JAX WS</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -113,8 +113,7 @@
<!--
<div class="pagetitle">JAX WS</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">Warning</B><BR>
+ <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">Warning</B><BR>
<P>This component has been deprecated in favor to <A
href="servicemix-jsr181.html"
title="servicemix-jsr181">servicemix-jsr181</A>
component.</P></TD></TR></TABLE>
<P> </P>
@@ -123,7 +122,13 @@
<H2><A name="JAXWS-MakingaWebServiceInvocationThroughJBI"></A>Making a Web
Service Invocation Through JBI</H2>
<P>The JBI binding for JAX-WS allows the JAX-WS API to invoke a web service
from a JBI message, i.e., the binding component uses JAX-WS to act as a web
service client. The following example shows how to configure a service as a
JAX-WS client:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><component id=<SPAN
class="code-quote">"addNumbersService"</SPAN> service=<SPAN
class="code-quote">"foo:AddNumbersService"</SPAN>
+ class=<SPAN
class="code-quote">"org.servicemix.components.jaxws.JAXWSOutBinding"</SPAN>>
+ <property name=<SPAN class="code-quote">"wsdlResource"</SPAN>
+ value=<SPAN
class="code-quote">"classpath:org/servicemix/components/jaxws/AddNumbers.wsdl"</SPAN>/>
+<SPAN class="code-tag"></component></SPAN></PRE>
+</DIV></DIV>
<P> </P>
<P>To automatically generate the service and the client, point to the WSDL
file. The above assumes the WSDL has only a single port available; if a WSDL
exposes multiple ports then you must also supply the port QName.</P>
@@ -131,11 +136,27 @@
<H2><A name="JAXWS-HostingaJAXWSServiceInsideServiceMix"></A>Hosting a JAX-WS
Service Inside ServiceMix</H2>
<P>The other option is to host the actual Java and JAX-WS based web service
implementation inside ServiceMix and then to expose it as an endpoint over one
or more transport protocols.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><component id=<SPAN
class="code-quote">"addNumbersService"</SPAN> service=<SPAN
class="code-quote">"foo:AddNumbersService"</SPAN>
+ class=<SPAN
class="code-quote">"org.servicemix.components.jaxws.JAXWSInBinding"</SPAN>>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"implementor"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.servicemix.components.jaxws.AddNumbersImpl"</SPAN>
/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></component></SPAN></PRE>
+</DIV></DIV>
<P> </P>
<P>The JAX-WS service needs to be defined with JAX-WS annotations as
follows:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">@WebService
[EMAIL PROTECTED](style = Style.RPC)
+<SPAN class="code-keyword">public</SPAN> class AddNumbersImpl <SPAN
class="code-keyword">implements</SPAN> AddNumbers {
+
+ <SPAN class="code-keyword">public</SPAN> <SPAN
class="code-object">int</SPAN> addNumbers (<SPAN class="code-object">int</SPAN>
number1, <SPAN class="code-object">int</SPAN> number2) {
+ <SPAN class="code-keyword">return</SPAN> number1 + number2;
+ }
+}</PRE>
+</DIV></DIV>
<P> </P>
<P>The "@" annotation allows programmers to avoid writing
boilerplate code. For example, <TT>@Webservice</TT> is a shorthand notation
that specificies this class is a Web Service. Tools that understand the
notation, such as the <TT>apt</TT> tool in Java 1.5, will automatically
generate the Web service artifacts including the WSDL file. This annotation is
described in <SPAN class="nobr"><A
href="http://jcp.org/aboutJava/communityprocess/pfd/jsr181/index.html"
title="Visit page outside Confluence" rel="nofollow">JSR 181<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>
@@ -164,8 +185,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=2048&originalId=5189">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=2048&originalId=14800">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=2048">edit
page</A>)
</DIV>
Modified: incubator/servicemix/site/main/jca.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/jca.html?view=diff&rev=471538&r1=471537&r2=471538
==============================================================================
--- incubator/servicemix/site/main/jca.html (original)
+++ incubator/servicemix/site/main/jca.html Sun Nov 5 13:39:52 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="JCA">JCA</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="JCA">JCA</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -113,8 +113,7 @@
<!--
<div class="pagetitle">JCA</div>
-->
- <DIV class="wiki-content">
-<P>The JCA <SPAN class="nobr"><A href="http://java.sun.com/j2ee/connector/"
title="Visit page outside Confluence" rel="nofollow">Java Connector
Architecture<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> provides the
most efficient way of thread pooling, resource pooling, transaction handling
and consumption on JMS and other Resource Adapters. For example if you are
consuming JMS messages, the JCA container provides the most efficient way of
pooling the JMS sessions and connections, pooling threads and processing
messages in parallel as well as transaction and exception handling.</P>
+ <DIV class="wiki-content"><P>The JCA <SPAN class="nobr"><A
href="http://java.sun.com/j2ee/connector/" title="Visit page outside
Confluence" rel="nofollow">Java Connector Architecture<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>
provides the most efficient way of thread pooling, resource pooling,
transaction handling and consumption on JMS and other Resource Adapters. For
example if you are consuming JMS messages, the JCA container provides the most
efficient way of pooling the JMS sessions and connections, pooling threads and
processing messages in parallel as well as transaction and exception
handling.</P>
<P>ServiceMix provides JCA versions of its components for easy deployment in
our <SPAN class="nobr"><A href="http://jencks.org/" title="Visit page outside
Confluence" rel="nofollow">JCA Container<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>
@@ -127,7 +126,25 @@
<H3><A name="JCA-ConfiguretheJCAContainer"></A>Configure the JCA Container</H3>
<P>Just add the following to your Spring configuration file</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jencks"</SPAN> class=<SPAN
class="code-quote">"org.jencks.JCAContainer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- lets use the
default configuration of work manager and transaction
manager--></SPAN></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"bootstrapContext"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.jencks.factory.BootstrapContextFactoryBean"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"threadPoolSize"</SPAN> value=<SPAN
class="code-quote">"25"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- the JCA Resource
Adapter --></SPAN></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"resourceAdapter"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"activeMQResourceAdapter"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.ra.ActiveMQResourceAdapter"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"serverUrl"</SPAN> value=<SPAN
class="code-quote">"tcp://localhost:61626"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+<SPAN class="code-tag"></bean></SPAN></PRE>
+</DIV></DIV>
<P> </P>
<P>Which will create the JCA container. Notice that there is a work manager
you can configure to set the thread pooling limits. Also you can associate
whichever <EM>JCA Resource Adapter</EM> you wish, such as to use another JMS
provider.</P>
@@ -135,21 +152,54 @@
<H3><A name="JCA-ConfiguretheJMSwithJCAcomponent."></A>Configure the JMS with
JCA component.</H3>
<P>We have a JmsInUsingJCABinding which works nicely with our JCA container to
provide a JBI component for consuming inbound JMS messages using JCA for all
the session, connection and thread pooling as well as handling parallel
processing of inbound messages and transaction handling.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJmsReceiver"</SPAN>
service=<SPAN class="code-quote">"foo:myJmsReceiver"</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.jms.JmsInUsingJCABinding"</SPAN>></SPAN>
+
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jcaContainer"</SPAN> ref=<SPAN
class="code-quote">"jencks"</SPAN>/></SPAN>
+
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"activationSpec"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.activemq.ra.ActiveMQActivationSpec"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"destination"</SPAN> value=<SPAN
class="code-quote">"test.org.apache.servicemix.example.jca"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"destinationType"</SPAN> value=<SPAN
class="code-quote">"javax.jms.Topic"</SPAN>/></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>
<P>You will notice that its not very different from the regular <A
href="jms.html" title="JMS">JMS</A> component; the main difference is the use
of the J2EE activation spec object to register with the JCA container.</P>
-<P>The activation specification is dependent on the JCA Resource Adapter being
used. If you are using <SPAN class="nobr"><A href="http://activemq.org/"
title="Visit page outside Confluence" rel="nofollow">ActiveMQ<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> as
your resource adapter then here are all the <SPAN class="nobr"><A
href="http://activemq.codehaus.org/maven/multiproject/activemq-ra/apidocs/org/codehaus/activemq/ra/ActiveMQActivationSpec.html"
title="Visit page outside Confluence" rel="nofollow">various
properties<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> you can
configure, giving you full control over every aspect of the JMS subscription,
pooling and delivery mode.</P>
+<P>The activation specification is dependent on the JCA Resource Adapter being
used. If you are using <SPAN class="nobr"><A href="http://activemq.org/"
title="Visit page outside Confluence" rel="nofollow">ActiveMQ<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> as
your resource adapter then here are all the <SPAN class="nobr"><A
href="http://incubator.apache.org/activemq/maven/activemq-ra/apidocs/org/apache/activemq/ra/ActiveMQActivationSpec.html"
title="Visit page outside Confluence" rel="nofollow">various
properties<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> you can
configure, giving you full control over every aspect of the JMS subscription,
pooling and delivery mode.</P>
<H2><A name="JCA-UsingXA"></A>Using XA</H2>
<P>To use XA for an inbound connection in the JCA container you'll need
to specify a transaction manager to the connector. Here's an example</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJmsReceiver"</SPAN>
service=<SPAN class="code-quote">"foo:myJmsReceiver"</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.jms.JmsInUsingJCABinding"</SPAN>></SPAN>
+
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jcaContainer"</SPAN> ref=<SPAN
class="code-quote">"jencks"</SPAN>/></SPAN>
+
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"activationSpec"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.activemq.ra.ActiveMQActivationSpec"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"destination"</SPAN> value=<SPAN
class="code-quote">"test.org.apache.servicemix.example.jca"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"destinationType"</SPAN> value=<SPAN
class="code-quote">"javax.jms.Topic"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- use XA
transactions --></SPAN></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transactionManager"</SPAN> ref=<SPAN
class="code-quote">"transactionManager"</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>You also need to provide a transaction manager implementation to use. Here
this exampe uses <SPAN class="nobr"><A href="http://jencks.org/" title="Visit
page outside Confluence" rel="nofollow">Geronimo's Transaction
Manager<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 class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"transactionManager"</SPAN> class=<SPAN
class="code-quote">"org.jencks.factory.TransactionManagerFactoryBean"</SPAN>/></SPAN></PRE>
+</DIV></DIV>
<P> </P></DIV>
</DIV>
@@ -160,8 +210,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=2126&originalId=5190">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=2126&originalId=14801">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=2126">edit
page</A>)
</DIV>
Modified: incubator/servicemix/site/main/jms.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/jms.html?view=diff&rev=471538&r1=471537&r2=471538
==============================================================================
--- incubator/servicemix/site/main/jms.html (original)
+++ incubator/servicemix/site/main/jms.html Sun Nov 5 13:39:52 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="JMS">JMS</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="JMS">JMS</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -124,21 +124,103 @@
<H3><A name="JMS-ReceivingJMSmessages"></A>Receiving JMS messages</H3>
-<P>The JmsReceiverComponent subscribes to the given destination using
Spring's JmsTemplate and dispatches the message into the JBI container.
Here's an <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/example.xml"
title="Visit page outside Confluence" rel="nofollow">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> of
subscribing to a JMS destination (in this case a topic) and forwarding the JBI
message onto another JBI component - which in this case is the
<EM>foo:transformer</EM> service.</P>
-
+<P>The JmsReceiverComponent subscribes to the given destination using
Spring's JmsTemplate and dispatches the message into the JBI container.
Here's an <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/example.xml"
title="Visit page outside Confluence" rel="nofollow">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> of
subscribing to a JMS destination (in this case a topic) and forwarding the JBI
message onto another JBI component - which in this case is the
<EM>foo:transformer</EM> service.</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJmsReceiver"</SPAN>
service=<SPAN class="code-quote">"foo:myJmsReceiver"</SPAN>
destinationService=<SPAN
class="code-quote">"foo:transformer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.jms.JmsReceiverComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN
class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN
class="code-quote">"test.org.apache.servicemix.components.xslt.source"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"pubSubDomain"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></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>If you wish to use JCA or some other mechanism to subscribe to JMS you can
use the JmsInBinding.</P>
<H3><A name="JMS-SendingJMSmessages"></A>Sending JMS messages</H3>
-<P>The JmsSenderComponent will send JMS messages from the input message
exchange. This component uses Spring's JmsTemplate to perform the sending.
The following <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/example.xml"
title="Visit page outside Confluence" rel="nofollow">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>
demonstrates a component which when invoked will send a message to a given JMS
topic</P>
-
+<P>The JmsSenderComponent will send JMS messages from the input message
exchange. This component uses Spring's JmsTemplate to perform the sending.
The following <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/example.xml"
title="Visit page outside Confluence" rel="nofollow">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>
demonstrates a component which when invoked will send a message to a given JMS
topic</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"myJmsSender"</SPAN>
service=<SPAN class="code-quote">"foo:myJmsSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.jms.JmsSenderComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN
class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN
class="code-quote">"test.org.apache.servicemix.components.xslt.source"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"pubSubDomain"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></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>
<H3><A name="JMS-JMSbridges"></A>JMS bridges</H3>
<P>Its a very common requirement to create a message bridge; routing messages
from one messaging system to another. With ServiceMix we can connect any
transport with any transport - but for now lets focus on JMS to JMS bridging.
Imagine for example you wish to route messages from ActiveMQ to MQSeries, or
from WebLogic JMS to ActiveMQ.</P>
-<P>The following <SPAN class="nobr"><A
href="https://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/pipeline.xml"
title="Visit page outside Confluence" rel="nofollow">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>
demonstrates how to setup a JMS bridge in ServiceMix</P>
+<P>The following <SPAN class="nobr"><A
href="https://svn.apache.org/repos/asf/incubator/servicemix/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/pipeline.xml"
title="Visit page outside Confluence" rel="nofollow">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>
demonstrates how to setup a JMS bridge in ServiceMix</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><beans <SPAN
class="code-keyword">xmlns:sm</SPAN>=<SPAN
class="code-quote">"http://servicemix.apache.org/config/1.0"</SPAN>
+ <SPAN class="code-keyword">xmlns:foo</SPAN>=<SPAN
class="code-quote">"http://servicemix.org/demo/pipeline/"</SPAN>>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- the JBI container
and its components --></SPAN></SPAN>
+ <SPAN class="code-tag"><sm:container id=<SPAN
class="code-quote">"jbi"</SPAN> embedded=<SPAN
class="code-quote">"true"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:activationSpecs></SPAN>
+
+ <SPAN class="code-tag"><sm:activationSpec componentName=<SPAN
class="code-quote">"myJmsReceiver"</SPAN> service=<SPAN
class="code-quote">"foo:myJmsReceiver"</SPAN>
destinationService=<SPAN
class="code-quote">"foo:transformer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.jms.JmsReceiverComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN
class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN
class="code-quote">"demo.cheese.source"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"pubSubDomain"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></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>
+
+ <SPAN class="code-tag"><sm:activationSpec componentName=<SPAN
class="code-quote">"transformer"</SPAN> service=<SPAN
class="code-quote">"foo:transformer"</SPAN> destinationService=<SPAN
class="code-quote">"foo:transformedSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.xslt.XsltComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"xsltResource"</SPAN> value=<SPAN
class="code-quote">"classpath:org/apache/servicemix/components/xslt/transform.xsl"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN><SPAN
class="code-tag"></sm:component></SPAN>
+ <SPAN class="code-tag"></sm:activationSpec></SPAN>
+
+ <SPAN class="code-tag"><sm:activationSpec componentName=<SPAN
class="code-quote">"transformedSender"</SPAN> service=<SPAN
class="code-quote">"foo:transformedSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN
class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.jms.JmsSenderComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN
class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN
class="code-quote">"demo.cheese.result"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"pubSubDomain"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN>/></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>
+
+ <SPAN class="code-tag"></sm:activationSpecs></SPAN>
+ <SPAN class="code-tag"></sm:container></SPAN>
+
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jmsFactory"</SPAN> class=<SPAN
class="code-quote">"org.apache.activemq.pool.PooledConnectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.activemq.ActiveMQConnectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"brokerURL"</SPAN> value=<SPAN
class="code-quote">"vm://localhost?broker.persistent=false"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
<P>This example is performing an <A href="xslt.html" title="XSLT">XSLT</A>
transform on the messages as well - you can perform arbitrary processing of the
messages in the bridge, performing rules processing or content based routing.
Obviously you could miss out the transformation step and just route the inbound
message on one JMS provider to another JMS provider without any transform
step.</P></DIV>
</DIV>
@@ -149,8 +231,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=1945&originalId=9589">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=1945&originalId=14802">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=1945">edit
page</A>)
</DIV>