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'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>
+<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></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"><beans></SPAN>
+ <SPAN class="code-tag"><import resource=<SPAN class="code-quote">"tx.xml"</SPAN> /></SPAN>
+
+ <bean id=<SPAN class="code-quote">"jndi"</SPAN>
+ class=<SPAN class="code-quote">"org.apache.xbean.spring.jndi.SpringInitialContextFactory"</SPAN>
+ factory-method=<SPAN class="code-quote">"makeInitialContext"</SPAN>
+ singleton=<SPAN class="code-quote">"true"</SPAN>>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"entries"</SPAN>></SPAN>
+ <SPAN class="code-tag"><map></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- PXE DB datasource --></SPAN></SPAN>
+ <!--
+ <SPAN class="code-tag"><entry key=<SPAN class="code-quote">"java:comp/env/jdbc/pxe__pm"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.hsqldb.jdbc.jdbcDataSource"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"database"</SPAN> value=<SPAN class="code-quote">"jdbc:hsqldb:mem:pxe"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"user"</SPAN> value = <SPAN class="code-quote">"sa"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"password"</SPAN> value = ""/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></entry></SPAN>
+ -->
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- wsn2005 jms connection factory --></SPAN></SPAN>
+ <SPAN class="code-tag"><entry key=<SPAN class="code-quote">"java:comp/env/jms/wsnotificationCF"</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">"tcp://localhost:61616"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></entry></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- transaction manager --></SPAN></SPAN>
+ <SPAN class="code-tag"><entry key=<SPAN class="code-quote">"javax.transaction.TransactionManager"</SPAN> value-ref=<SPAN class="code-quote">"transactionManager"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></map></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+
+<SPAN class="code-tag"></beans></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"><sm:activationSpec componentName=<SPAN class="code-quote">"myService"</SPAN> service=<SPAN class="code-quote">"foo:myService"</SPAN> endpoint=<SPAN class="code-quote">"myService"</SPAN> destinationService=<SPAN class="code-quote">"foo:myServiceImpl"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.validation.ValidateComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"schemaResource"</SPAN> value=<SPAN class="code-quote">"classpath:org/apache/servicemix/components/validation/schema.xsd"</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>
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"><sm:container id=<SPAN class="code-quote">"jbi"</SPAN> embedded=<SPAN class="code-quote">"true"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:listeners></SPAN>
+ <SPAN class="code-tag"><sm:dotViewEndpointListener file=<SPAN class="code-quote">"target/ServiceMixComponents.dot"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></sm:listeners></SPAN>
+
+ <SPAN class="code-tag"><sm:activationSpecs></SPAN></PRE>
+</DIV></DIV>
<H2><A name="Visualisation-AnoteforOSXusers"></A>A note for OS X users</H2>