Author: chirino
Date: Sat Oct 7 15:18:04 2006
New Revision: 454036
URL: http://svn.apache.org/viewvc?view=rev&rev=454036
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/sm30ug/6-configuring-servicemix.html
Modified: incubator/servicemix/site/sm30ug/6-configuring-servicemix.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/6-configuring-servicemix.html?view=diff&rev=454036&r1=454035&r2=454036
==============================================================================
--- incubator/servicemix/site/sm30ug/6-configuring-servicemix.html (original)
+++ incubator/servicemix/site/sm30ug/6-configuring-servicemix.html Sat Oct 7
15:18:04 2006
@@ -143,6 +143,8 @@
<H2><A name="6.ConfiguringServiceMix-Containerconfiguration"></A>Container
configuration</H2>
+<H3><A name="6.ConfiguringServiceMix-Properties"></A>Properties</H3>
+
<P>ServiceMix has a number of parameters that you can set to change it's
runtime behaviour on either the <SPAN class="nobr"><A
href="http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/jbi/container/JBIContainer.html"
title="Visit page outside Confluence" rel="nofollow">JBIContainer <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> or
the derived <SPAN class="nobr"><A
href="http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/jbi/container/SpringJBIContainer.html"
title="Visit page outside Confluence" rel="nofollow">SpringJBIContainer
<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>These are as follows:</P>
@@ -297,7 +299,131 @@
<TD class="confluenceTd"> <SPAN class="nobr"><A
href="http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/jbi/nmr/Broker.html"
title="Visit page outside Confluence" rel="nofollow">Broker<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> </TD>
<TD class="confluenceTd"> The broker used to dispatch JBI exchanges. </TD>
</TR>
+<TR>
+<TD class="confluenceTd"> activationSpecs </TD>
+<TD class="confluenceTd"> <SPAN class="nobr"><A
href="http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/jbi/container/ActivationSpec.html"
title="Visit page outside Confluence" rel="nofollow">ActivationSpec<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>[]
</TD>
+<TD class="confluenceTd"> The list of activation specs to use. Activations
specs are used to configure JBI components. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> componentNames </TD>
+<TD class="confluenceTd"> String[] </TD>
+<TD class="confluenceTd"> An array of Strings identifying the spring ids of
components to activate </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> listeners </TD>
+<TD class="confluenceTd"> <SPAN class="nobr"><A
href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/EventListener.html"
title="Visit page outside Confluence" rel="nofollow">EventListener<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>[]
</TD>
+<TD class="confluenceTd"> An array of event listeners to configure on the
container. Event listeners can be used to receive several kind of events wrt
to the JBI container. </TD>
+</TR>
</TBODY></TABLE></TD></TR></TABLE>
+
+<P>See <A href="../SM/xml-schemas.html" title="Xml schemas">XML Schemas</A>
for a full description of these XML elements.</P>
+
+<H3><A name="6.ConfiguringServiceMix-Examples"></A>Examples</H3>
+
+<P>Attributes listed above are properties of simple types. They can be set
using attributes on the main container tag in xbean:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans <SPAN
class="code-keyword">xmlns:sm</SPAN>=<SPAN
class="code-quote">"http://servicemix.apache.org/config/1.0"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:container embedded=<SPAN
class="code-quote">"true"</SPAN>></SPAN>
+ ...
+ <SPAN class="code-tag"></sm:container></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<P>or using plain Spring syntax:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.container.SpringJBIContainer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"embedded"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN> /></SPAN>
+ ...
+ <SPAN class="code-tag"></bean></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+
+<P>Elements listed above are properties with complex types, i.e. beans. They
can be set using references in xbean:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans <SPAN
class="code-keyword">xmlns:sm</SPAN>=<SPAN
class="code-quote">"http://servicemix.apache.org/config/1.0"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:container transactionManager=<SPAN
class="code-quote">"#txmgr"</SPAN>></SPAN>
+ ...
+ <SPAN class="code-tag"></sm:container></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"txmgr"</SPAN> ... /></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<P>or using an element and an inner bean definition:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans <SPAN
class="code-keyword">xmlns:sm</SPAN>=<SPAN
class="code-quote">"http://servicemix.apache.org/config/1.0"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:container></SPAN>
+ <SPAN class="code-tag"><sm:transactionManager></SPAN>
+ <SPAN class="code-tag"><bean ... /></SPAN>
+ <SPAN class="code-tag"></sm:transactionManager></SPAN>
+ ...
+ <SPAN class="code-tag"></sm:container></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"txmgr"</SPAN> ... /></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<P>or using plain spring syntax as a reference:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.container.SpringJBIContainer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transactionManager"</SPAN> ref=<SPAN
class="code-quote">"txmgr"</SPAN> /></SPAN>
+ ...
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"txmgr"</SPAN> ... /></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<P>or using plain spring syntax and an inner bean definition:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.container.SpringJBIContainer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"transactionManager"</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>Some beans have corresponsing xbean elements, so the following xml
configurations are equivalent:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans <SPAN
class="code-keyword">xmlns:sm</SPAN>=<SPAN
class="code-quote">"http://servicemix.apache.org/config/1.0"</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:broker></SPAN>
+ <SPAN class="code-tag"><sm:securedBroker authorizationMap=<SPAN
class="code-quote">"#authorizationMap"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:flows></SPAN>
+ <SPAN class="code-tag"><sm:sedaFlow /></SPAN>
+ <SPAN class="code-tag"><sm:jmsFlow jmsURL=<SPAN
class="code-quote">"tcp://localhost:61616"</SPAN> /></SPAN>
+ <sm:jcaFlow connectionManager=<SPAN
class="code-quote">"#connectionManager"</SPAN>
+ jmsURL=<SPAN
class="code-quote">"tcp://localhost:61616"</SPAN> />
+ <SPAN class="code-tag"></sm:flows></SPAN>
+ <SPAN class="code-tag"></sm:securedBroker></SPAN>
+ <SPAN class="code-tag"></sm:broker></SPAN>
+ <SPAN class="code-tag"></sm:container></SPAN>
+<SPAN class="code-tag"></beans></SPAN></PRE>
+</DIV></DIV>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><beans></SPAN>
+ <SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"jbi"</SPAN> class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.container.SpringJBIContainer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"embedded"</SPAN> value=<SPAN
class="code-quote">"true"</SPAN> /></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"broker"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.security.SecuredBroker"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"authorizationMap"</SPAN> ref=<SPAN
class="code-quote">"authorizationMap"</SPAN> /></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"flows"</SPAN>></SPAN>
+ <SPAN class="code-tag"><list></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.flows.seda.SedaFlow"</SPAN>
/></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.flows.jms.JMSFlow"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jmsURL"</SPAN> value=<SPAN
class="code-quote">"tcp://localhost:61616"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.jbi.flows.jca.JCAFlow"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"jmsURL"</SPAN> value=<SPAN
class="code-quote">"tcp://localhost:61616"</SPAN> /></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"connectionManager"</SPAN> ref=<SPAN
class="code-quote">"connectionManager"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></list></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"></beans></SPAN></PRE>
+</DIV></DIV>
+
+
<STYLE type="text/css">/*<![CDATA[*/
table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding:
3px;margin: 0px;background-color: #f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width:
16px;border: none;}
@@ -316,7 +442,7 @@
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A>,
last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Oct 08, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13935&originalId=14025">view
change</A>)
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=13935&originalId=14026">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=13935">edit
page</A>)
</DIV>