You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2007/01/25 19:48:53 UTC
svn commit: r499895 - in /incubator/servicemix/site: client-api.html
documentation.html features.html
Author: chirino
Date: Thu Jan 25 10:48:52 2007
New Revision: 499895
URL: http://svn.apache.org/viewvc?view=rev&rev=499895
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/client-api.html
incubator/servicemix/site/documentation.html
incubator/servicemix/site/features.html
Modified: incubator/servicemix/site/client-api.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/client-api.html?view=diff&rev=499895&r1=499894&r2=499895
==============================================================================
--- incubator/servicemix/site/client-api.html (original)
+++ incubator/servicemix/site/client-api.html Thu Jan 25 10:48:52 2007
@@ -14,10 +14,8 @@
_uacct = "UA-398545-1";
urchinTracker();
</SCRIPT>
-<META name="keywords" content="business integration, enterprise service bus, enterprise application integration, ESB, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, business-to-business, b2b, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, java message service, middleware, message broker, software, solutions, services, ActiveMQ, ServiceMix, open source, MQ, message queue, message bus">
-<META name="description" content="">
<TITLE>
-Apache ServiceMix, the Agile Open Source ESB -- Client API
+Client API
</TITLE>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
<BODY onload="init()">
@@ -197,42 +195,15 @@
<P>ServiceMix has integrated support for <A href="uris.html" title="URIs">URIs</A> to simplify the accessing of endpoints within the <A href="nmr.html" title="NMR">NMR</A>. The ServiceMixClient (from 3.0-M3 or later) allows you to work with URIs easily via a Destination interface. This interface acts as a factory of MessageExchange objects which are pre-wired to specific endpoints specified via a URI.</P>
<P>The following shows how to work with InOnly for one way messaging</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-java">Destination destination = client.createDestination(<SPAN class="code-quote">"service:http:<SPAN class="code-comment">//servicemix.org/cheese/receiver"</SPAN>);
-</SPAN>InOnly exchange = destination.createInOnlyExchange();
-
-NormalizedMessage message = exchange.getInMessage();
-message.setProperty(<SPAN class="code-quote">"name"</SPAN>, <SPAN class="code-quote">"James"</SPAN>);
-message.setContent(<SPAN class="code-keyword">new</SPAN> StreamSource(<SPAN class="code-keyword">new</SPAN> StringReader(<SPAN class="code-quote">"<hello>world</hello>"</SPAN>)));
-client.send(exchange);</PRE>
-</DIV></DIV>
<P>Or using InOut for request-response</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-java">Destination destination = client.createDestination(<SPAN class="code-quote">"service:http:<SPAN class="code-comment">//servicemix.org/cheese/myService"</SPAN>);
-</SPAN>InOut exchange = destination.createInOutExchange();
-NormalizedMessage request = exchange.getInMessage();
-request.setProperty(<SPAN class="code-quote">"name"</SPAN>, <SPAN class="code-quote">"James"</SPAN>);
-request.setContent(<SPAN class="code-keyword">new</SPAN> StreamSource(<SPAN class="code-keyword">new</SPAN> StringReader(<SPAN class="code-quote">"<hello>world</hello>"</SPAN>)));
-
-client.sendSync(exchange);
-
-NormalizedMessage response = exchange.getOutMessage();</PRE>
-</DIV></DIV>
<H3><A name="ClientAPI-SimpleronewaymessagingwithDestinations"></A>Simpler one-way messaging with Destinations</H3>
<P>For one-way messaging its sometimes simpler to just work with a Message instance (you can always refer to the MessageExchange via the getExchange() method if need be). For example</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-java">Destination destination = client.createDestination(<SPAN class="code-quote">"service:http:<SPAN class="code-comment">//servicemix.org/cheese/receiver"</SPAN>);
-</SPAN>Message message = destination.createInOnlyMessage();
-message.setProperty(<SPAN class="code-quote">"name"</SPAN>, <SPAN class="code-quote">"James"</SPAN>);
-message.setBody(<SPAN class="code-quote">"<hello>world</hello>"</SPAN>);
-client.send(message);</PRE>
-</DIV></DIV>
-<P>For more detail see the <SPAN class="nobr"><A href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/core/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java" title="Visit page outside Confluence" rel="nofollow">unit test case<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>
+<P>For more detail see the <SPAN class="nobr"><A href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java" title="Visit page outside Confluence" rel="nofollow">unit test case<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>
<H2><A name="ClientAPI-UsingthePOJOmethods"></A>Using the POJO methods</H2>
@@ -275,22 +246,11 @@
<P>We use the Spring XML configuration files to configure the client. You can then use dependency injection to inject the client into your POJOs.</P>
<P>Here's an example of using a basic client...</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-xml"><SPAN class="code-tag"><bean id=<SPAN class="code-quote">"client"</SPAN> class=<SPAN class="code-quote">"org.apache.servicemix.client.DefaultServiceMixClient"</SPAN>></SPAN>
- <SPAN class="code-tag"><constructor-arg ref=<SPAN class="code-quote">"jbi"</SPAN> /></SPAN>
-<SPAN class="code-tag"></bean></SPAN></PRE>
-</DIV></DIV>
+
<P>Note that the jbi bean reference is the ServiceMix JBI container.</P>
<P>This example creates a client which is hard-wired to default to a specific service when an invocation is performed.</P>
-<DIV class="code"><DIV class="codeContent">
-<PRE class="code-xml"><SPAN class="code-tag"><bean id=<SPAN class="code-quote">"clientWithRouting"</SPAN> class=<SPAN class="code-quote">"org.apache.servicemix.client.DefaultServiceMixClient"</SPAN>></SPAN>
- <SPAN class="code-tag"><constructor-arg ref=<SPAN class="code-quote">"jbi"</SPAN> /></SPAN>
- <SPAN class="code-tag"><constructor-arg></SPAN>
- <SPAN class="code-tag"><sm:activationSpec destinationService=<SPAN class="code-quote">"foo:receiver"</SPAN>/></SPAN>
- <SPAN class="code-tag"></constructor-arg></SPAN>
-<SPAN class="code-tag"></bean></SPAN></PRE>
-</DIV></DIV>
+
<H3><A name="ClientAPI-IfyouhaveaccesstoaComponentContext"></A>If you have access to a ComponentContext</H3>
@@ -320,8 +280,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 Jan 25, 2007
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1957&originalId=15343">view change</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=1957&originalId=9596">view change</A>)
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=1957">edit page</A>)
</DIV>
Modified: incubator/servicemix/site/documentation.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/documentation.html?view=diff&rev=499895&r1=499894&r2=499895
==============================================================================
--- incubator/servicemix/site/documentation.html (original)
+++ incubator/servicemix/site/documentation.html Thu Jan 25 10:48:52 2007
@@ -14,10 +14,8 @@
_uacct = "UA-398545-1";
urchinTracker();
</SCRIPT>
-<META name="keywords" content="business integration, enterprise service bus, enterprise application integration, ESB, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, business-to-business, b2b, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, java message service, middleware, message broker, software, solutions, services, ActiveMQ, ServiceMix, open source, MQ, message queue, message bus">
-<META name="description" content="">
<TITLE>
-Apache ServiceMix, the Agile Open Source ESB -- Documentation
+Documentation
</TITLE>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
<BODY onload="init()">
Modified: incubator/servicemix/site/features.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/features.html?view=diff&rev=499895&r1=499894&r2=499895
==============================================================================
--- incubator/servicemix/site/features.html (original)
+++ incubator/servicemix/site/features.html Thu Jan 25 10:48:52 2007
@@ -14,10 +14,8 @@
_uacct = "UA-398545-1";
urchinTracker();
</SCRIPT>
-<META name="keywords" content="business integration, enterprise service bus, enterprise application integration, ESB, EAI, SOA, Service Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, business-to-business, b2b, XML, EDI, Electronic Data Interchange, standards support, integration standards, application integration, java message service, middleware, message broker, software, solutions, services, ActiveMQ, ServiceMix, open source, MQ, message queue, message bus">
-<META name="description" content="">
<TITLE>
-Apache ServiceMix, the Agile Open Source ESB -- Features
+Features
</TITLE>
<META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
<BODY onload="init()">