You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by js...@apache.org on 2006/05/22 15:54:04 UTC

svn commit: r408664 - in /incubator/servicemix/site: client-api.html jndi-configuration.html validation.html visualisation.html

Author: jstrachan
Date: Mon May 22 06:54:03 2006
New Revision: 408664

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

Modified:
    incubator/servicemix/site/client-api.html
    incubator/servicemix/site/jndi-configuration.html
    incubator/servicemix/site/validation.html
    incubator/servicemix/site/visualisation.html

Modified: incubator/servicemix/site/client-api.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/client-api.html?rev=408664&r1=408663&r2=408664&view=diff
==============================================================================
--- incubator/servicemix/site/client-api.html (original)
+++ incubator/servicemix/site/client-api.html Mon May 22 06:54:03 2006
@@ -340,11 +340,22 @@
 <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&apos;s an example of using a basic client...</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;bean id=<SPAN class="code-quote">&quot;client&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.servicemix.client.DefaultServiceMixClient&quot;</SPAN>&gt;</SPAN>
+  <SPAN class="code-tag">&lt;constructor-arg ref=<SPAN class="code-quote">&quot;jbi&quot;</SPAN> /&gt;</SPAN>
+<SPAN class="code-tag">&lt;/bean&gt;</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>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;bean id=<SPAN class="code-quote">&quot;clientWithRouting&quot;</SPAN> class=<SPAN class="code-quote">&quot;org.apache.servicemix.client.DefaultServiceMixClient&quot;</SPAN>&gt;</SPAN>
+  <SPAN class="code-tag">&lt;constructor-arg ref=<SPAN class="code-quote">&quot;jbi&quot;</SPAN> /&gt;</SPAN>
+  <SPAN class="code-tag">&lt;constructor-arg&gt;</SPAN>
+    <SPAN class="code-tag">&lt;sm:activationSpec destinationService=<SPAN class="code-quote">&quot;foo:receiver&quot;</SPAN>/&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/constructor-arg&gt;</SPAN>
+<SPAN class="code-tag">&lt;/bean&gt;</SPAN></PRE>
+</DIV></DIV></DIV>
           
                   </DIV>
         </TD>

Modified: incubator/servicemix/site/jndi-configuration.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/jndi-configuration.html?rev=408664&r1=408663&r2=408664&view=diff
==============================================================================
--- incubator/servicemix/site/jndi-configuration.html (original)
+++ incubator/servicemix/site/jndi-configuration.html Mon May 22 06:54:03 2006
@@ -263,7 +263,44 @@
 <P>Where the value is any valid Spring resource string such as a <SPAN class="nobr"><A href="file://foo/bar.xml" title="Visit page outside Confluence" rel="nofollow">file://foo/bar.xml<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> or a URL such as <SPAN class="nobr"><A href="http://acme.com/whatnot.xml" title="Visit page outside Confluence" rel="nofollow">http://acme.com/whatnot.xml<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN>. The default value is assumed to be classpath://jndi.xml.</P>
 
 <P>Then you can create a regular Spring XML configuration file to create a JNDI context (called <EM>jndi</EM>), which by default is a file called jndi.xml on the classpath</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;beans&gt;</SPAN>
 
+  <SPAN class="code-tag">&lt;import resource=<SPAN class="code-quote">&quot;tx.xml&quot;</SPAN> /&gt;</SPAN>
+
+  &lt;bean id=<SPAN class="code-quote">&quot;jndi&quot;</SPAN> 
+        class=<SPAN class="code-quote">&quot;org.apache.xbean.spring.jndi.SpringInitialContextFactory&quot;</SPAN> 
+        factory-method=<SPAN class="code-quote">&quot;makeInitialContext&quot;</SPAN>
+        singleton=<SPAN class="code-quote">&quot;true&quot;</SPAN>&gt;
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;entries&quot;</SPAN>&gt;</SPAN>
+      <SPAN class="code-tag">&lt;map&gt;</SPAN>
+      
+        <SPAN class="code-tag"><SPAN class="code-comment">&lt;!-- PXE DB datasource --&gt;</SPAN></SPAN>
+        &lt;!--
+        <SPAN class="code-tag">&lt;entry key=<SPAN class="code-quote">&quot;java:comp/env/jdbc/pxe__pm&quot;</SPAN>&gt;</SPAN>
+          <SPAN class="code-tag">&lt;bean class=<SPAN class="code-quote">&quot;org.hsqldb.jdbc.jdbcDataSource&quot;</SPAN>&gt;</SPAN>
+            <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;database&quot;</SPAN> value=<SPAN class="code-quote">&quot;jdbc:hsqldb:mem:pxe&quot;</SPAN>/&gt;</SPAN>
+            <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;user&quot;</SPAN> value = <SPAN class="code-quote">&quot;sa&quot;</SPAN>/&gt;</SPAN>
+            <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;password&quot;</SPAN> value = &quot;&quot;/&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/entry&gt;</SPAN>
+        --&gt;
+        
+        <SPAN class="code-tag"><SPAN class="code-comment">&lt;!-- wsn2005 jms connection factory --&gt;</SPAN></SPAN>
+        <SPAN class="code-tag">&lt;entry key=<SPAN class="code-quote">&quot;java:comp/env/jms/wsnotificationCF&quot;</SPAN>&gt;</SPAN>
+          <SPAN class="code-tag">&lt;bean class=<SPAN class="code-quote">&quot;org.apache.activemq.ActiveMQConnectionFactory&quot;</SPAN>&gt;</SPAN>
+            <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;brokerURL&quot;</SPAN> value=<SPAN class="code-quote">&quot;tcp://localhost:61616&quot;</SPAN> /&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/entry&gt;</SPAN>
+
+        <SPAN class="code-tag"><SPAN class="code-comment">&lt;!-- transaction manager --&gt;</SPAN></SPAN>
+        <SPAN class="code-tag">&lt;entry key=<SPAN class="code-quote">&quot;javax.transaction.TransactionManager&quot;</SPAN> value-ref=<SPAN class="code-quote">&quot;transactionManager&quot;</SPAN> /&gt;</SPAN>
+      <SPAN class="code-tag">&lt;/map&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/property&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/bean&gt;</SPAN>
+
+<SPAN class="code-tag">&lt;/beans&gt;</SPAN></PRE>
+</DIV></DIV>
 <P>.</P></DIV>
           
                   </DIV>

Modified: incubator/servicemix/site/validation.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/validation.html?rev=408664&r1=408663&r2=408664&view=diff
==============================================================================
--- incubator/servicemix/site/validation.html (original)
+++ incubator/servicemix/site/validation.html Mon May 22 06:54:03 2006
@@ -252,7 +252,13 @@
 <P>The validation component provides schema validation of documents using <SPAN class="nobr"><A href="http://java.sun.com/xml/jaxp/index.jsp" title="Visit page outside Confluence" rel="nofollow">JAXP 1.3<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> and <SPAN class="nobr"><A href="http://www.w3.org/XML/Schema" title="Visit page outside Confluence" rel="nofollow">XMLSchema<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN> or <SPAN class="nobr"><A href="http://relaxng.org/" title="Visit page outside Confluence" rel="nofollow">RelaxNG<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN>.</P>
 
 <P>The component is pretty simple and straightforward; its configured with a schema document as follows. If the inbound document is valid, it continues on its way to the ultimate destination. Otherwise a fault is returned in the message exchange.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec componentName=<SPAN class="code-quote">&quot;myService&quot;</SPAN> service=<SPAN class="code-quote">&quot;foo:myService&quot;</SPAN> endpoint=<SPAN class="code-quote">&quot;myService&quot;</SPAN> destinationService=<SPAN class="code-quote">&quot;foo:myServiceImpl&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.validation.ValidateComponent&quot;</SPAN>&gt;</SPAN>
+    <SPAN class="code-tag">&lt;property name=<SPAN class="code-quote">&quot;schemaResource&quot;</SPAN> value=<SPAN class="code-quote">&quot;classpath:org/apache/servicemix/components/validation/schema.xsd&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></DIV>
           
                   </DIV>

Modified: incubator/servicemix/site/visualisation.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/visualisation.html?rev=408664&r1=408663&r2=408664&view=diff
==============================================================================
--- incubator/servicemix/site/visualisation.html (original)
+++ incubator/servicemix/site/visualisation.html Mon May 22 06:54:03 2006
@@ -267,7 +267,14 @@
 
 <P>The following example shows how to configure a simple visualization listener.</P>
 
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:container id=<SPAN class="code-quote">&quot;jbi&quot;</SPAN> embedded=<SPAN class="code-quote">&quot;true&quot;</SPAN>&gt;</SPAN>
+  <SPAN class="code-tag">&lt;sm:listeners&gt;</SPAN>
+      <SPAN class="code-tag">&lt;sm:dotViewEndpointListener file=<SPAN class="code-quote">&quot;target/ServiceMixComponents.dot&quot;</SPAN>/&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/sm:listeners&gt;</SPAN>
+  
+  <SPAN class="code-tag">&lt;sm:activationSpecs&gt;</SPAN></PRE>
+</DIV></DIV>
 
 <H2><A name="Visualisation-AnoteforOSXusers"></A>A note for OS X users</H2>