Author: jbonofre
Date: Mon May 2 10:38:38 2011
New Revision: 1098529
URL: http://svn.apache.org/viewvc?rev=1098529&view=rev
Log:
[SM-2075] Update the servicemix.xml of basic example.
Modified:
servicemix/smx3/trunk/pom.xml
servicemix/smx3/trunk/samples/basic/src/main/resources/servicemix.xml
Modified: servicemix/smx3/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/pom.xml?rev=1098529&r1=1098528&r2=1098529&view=diff
==============================================================================
--- servicemix/smx3/trunk/pom.xml (original)
+++ servicemix/smx3/trunk/pom.xml Mon May 2 10:38:38 2011
@@ -102,7 +102,7 @@
<servicemix-exec-version>${servicemix-components-version}</servicemix-exec-version>
<servicemix-vfs-version>${servicemix-components-version}</servicemix-vfs-version>
- <jbi-plugin-version>4.4</jbi-plugin-version>
+ <jbi-plugin-version>4.5-SNAPSHOT</jbi-plugin-version>
<res-maven-plugin-version>4.1</res-maven-plugin-version>
<servicemix-build-version>1.0</servicemix-build-version>
Modified: servicemix/smx3/trunk/samples/basic/src/main/resources/servicemix.xml
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/samples/basic/src/main/resources/servicemix.xml?rev=1098529&r1=1098528&r2=1098529&view=diff
==============================================================================
--- servicemix/smx3/trunk/samples/basic/src/main/resources/servicemix.xml
(original)
+++ servicemix/smx3/trunk/samples/basic/src/main/resources/servicemix.xml Mon
May 2 10:38:38 2011
@@ -17,200 +17,211 @@
limitations under the License.
-->
-<beans xmlns="http://xbean.org/schemas/spring/1.0"
- xmlns:sm="http://servicemix.apache.org/config/1.0"
- xmlns:jms="http://servicemix.apache.org/jms/1.0"
- xmlns:amq="http://activemq.apache.org/schema/core"
- xmlns:amqra="http://activemq.apache.org/schema/ra"
- xmlns:amqpool="http://jencks.org/amqpool/2.0"
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:spring="http://xbean.org/schemas/spring/1.0"
+ xmlns:sm="http://servicemix.apache.org/config/1.0"
+ xmlns:jms="http://servicemix.apache.org/jms/1.0"
+ xmlns:amq="http://activemq.apache.org/schema/core"
+ xmlns:amqra="http://activemq.apache.org/schema/ra"
+ xmlns:amqpool="http://jencks.org/amqpool/2.0"
xmlns:jencks="http://jencks.org/2.0"
- xmlns:my="http://servicemix.apache.org/demo/">
+ xmlns:my="http://servicemix.apache.org/demo/"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://servicemix.apache.org/config/1.0
http://servicemix.apache.org/schema/servicemix-core-${project.version}.xsd
+ http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-${servicemix-jms-version}.xsd
+ http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core-${activemq-version}.xsd
+ http://activemq.apache.org/schema/ra
http://activemq.apache.org/schema/ra/activemq-ra.xsd
+ http://jencks.org/2.0 http://jencks.org/2.0/jencks.xsd
+ http://jencks.org/amqpool/2.0
http://jencks.org/amqpool/2.0/jencks-amqpool.xsd
+ ">
+
+
+ <!-- the JBI container -->
+ <sm:container id="jbi"
+ rootDir="./target/data/smx"
+ useMBeanServer="true"
+ createMBeanServer="true"
+ transactionManager="#transactionManager"
+ flowName="seda"
+ autoEnlistInTransaction="true">
+
+ <sm:activationSpecs>
+
+ <!--
+ ~ This component will receive quartz timers.
+ ~ As we use static deployment mode (without Service Units),
+ ~ components are started in the order they are declared.
+ ~ So we must put this component before the quartz one.
+ ~
+ ~ This component is a JMS publisher (role=provider) and
+ ~ will publish the message to the "servicemix.source" topic.
+ -->
+ <sm:activationSpec componentName="inputSender">
+ <sm:component>
+ <jms:component>
+ <jms:endpoints>
+ <jms:endpoint service="my:inputSender"
+ endpoint="endpoint"
+ role="provider"
+ connectionFactory="#jmsFactory"
+
jmsProviderDestinationName="servicemix.source"
+ destinationStyle="topic"/>
+ </jms:endpoints>
+ </jms:component>
+ </sm:component>
+ </sm:activationSpec>
+
+ <!--
+ ~ This quartz component is configured to fire a timer every 5
seconds.
+ ~ JBI exchanges are sent to the "my:inputSender" service defined
above.
+ -->
+ <sm:activationSpec componentName="timer" service="my:timer"
destinationService="my:inputSender">
+ <sm:component>
+ <bean
class="org.apache.servicemix.components.quartz.QuartzComponent">
+ <property name="triggers">
+ <map>
+ <entry>
+ <key>
+ <bean class="org.quartz.SimpleTrigger">
+ <property name="repeatInterval"
value="5000"/>
+ <property name="repeatCount"
value="-1"/>
+ </bean>
+ </key>
+ <bean class="org.quartz.JobDetail">
+ <property name="name" value="My
Example Job"/>
+ <property name="group"
value="ServiceMix"/>
+ </bean>
+ </entry>
+ </map>
+ </property>
+ </bean>
+ </sm:component>
+ </sm:activationSpec>
+
+ <!--
+ ~ This JMS component will subscribe to the "servicemix.source"
topic, using JCA.
+ ~ It means that the JMS messages will be delivered inside an XA
+ ~ transaction. JBI exchanges will be sent to the "my:outputSender"
+ ~ service (which is a JMS producer, so that a JMS bridge is
created).
+ -->
+ <sm:activationSpec componentName="inputReceiver">
+ <sm:component>
+ <jms:component>
+ <jms:endpoints>
+ <jms:endpoint service="my:outputSender"
+ endpoint="endpoint"
+ role="consumer"
+ processorName="jca"
+ bootstrapContext="#bootstrapContext"
+
resourceAdapter="#activeMQResourceAdapter"
+ connectionFactory="#jmsFactory"
+
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
+ synchronous="true">
+ <jms:activationSpec>
+ <amqra:activationSpec
destination="servicemix.source"
+
destinationType="javax.jms.Topic"/>
+ </jms:activationSpec>
+ </jms:endpoint>
+ </jms:endpoints>
+ </jms:component>
+ </sm:component>
+ </sm:activationSpec>
+
+ <!--
+ ~ This JMS publisher will publish the JBI exchange
+ ~ to the "servicemix.result" topic using JCA.
+ -->
+ <sm:activationSpec componentName="outputSender">
+ <sm:component>
+ <jms:component>
+ <jms:endpoints>
+ <jms:endpoint service="my:outputSender"
+ endpoint="endpoint"
+ role="provider"
+ processorName="jca"
+ connectionFactory="#jmsFactory"
+
jmsProviderDestinationName="servicemix.result"
+ destinationStyle="topic"/>
+ </jms:endpoints>
+ </jms:component>
+ </sm:component>
+ </sm:activationSpec>
+
+
+ <!--
+ ~ Just to demonstrate that we are sending messages,
+ ~ lets trace the messages we receive.
+ ~ So subscribe to the "output" topic and sent the
+ ~ exchange to the trace component.
+ -->
+ <sm:activationSpec componentName="jmsTrace">
+ <sm:component>
+ <jms:component>
+ <jms:endpoints>
+ <jms:endpoint service="my:jmsTrace"
+ endpoint="endpoint"
+ role="consumer"
+ processorName="jca"
+ targetService="my:trace"
+ bootstrapContext="#bootstrapContext"
+
resourceAdapter="#activeMQResourceAdapter"
+ connectionFactory="#jmsFactory"
+
defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
+ synchronous="true">
+ <jms:activationSpec>
+ <amqra:activationSpec
destination="servicemix.result"
+
destinationType="javax.jms.Topic"/>
+ </jms:activationSpec>
+ </jms:endpoint>
+ </jms:endpoints>
+ </jms:component>
+ </sm:component>
+ </sm:activationSpec>
+
+ <!--
+ ~ Trace component to display exchanges to the console.
+ -->
+ <sm:activationSpec componentName="trace" service="my:trace">
+ <sm:component>
+ <bean
class="org.apache.servicemix.components.util.TraceComponent"/>
+ </sm:component>
+ </sm:activationSpec>
+ </sm:activationSpecs>
+ </sm:container>
+ <!-- Transaction Manager -->
+ <jencks:transactionManager id="transactionManager"/>
- <!-- the JBI container -->
- <sm:container id="jbi"
- rootDir="./target/data/smx"
- useMBeanServer="true"
- createMBeanServer="true"
- transactionManager="#transactionManager"
- flowName="seda"
- autoEnlistInTransaction="true">
-
- <sm:activationSpecs>
-
- <!--
- ~ This component will receive quartz timers.
- ~ As we use static deployment mode (without Service Units),
- ~ components are started in the order they are declared.
- ~ So we must put this component before the quartz one.
- ~
- ~ This component is a JMS publisher (role=provider) and
- ~ will publish the message to the "servicemix.source" topic.
- -->
- <sm:activationSpec componentName="inputSender">
- <sm:component>
- <jms:component>
- <jms:endpoints>
- <jms:endpoint service="my:inputSender"
- endpoint="endpoint"
- role="provider"
- connectionFactory="#jmsFactory"
- jmsProviderDestinationName="servicemix.source"
- destinationStyle="topic" />
- </jms:endpoints>
- </jms:component>
- </sm:component>
- </sm:activationSpec>
-
- <!--
- ~ This quartz component is configured to fire a timer every 5 seconds.
- ~ JBI exchanges are sent to the "my:inputSender" service defined above.
- -->
- <sm:activationSpec componentName="timer"
service="my:timer" destinationService="my:inputSender">
- <sm:component>
- <bean
class="org.apache.servicemix.components.quartz.QuartzComponent">
- <property name="triggers">
- <map>
- <entry>
- <key>
-
<bean class="org.quartz.SimpleTrigger">
-
<property name="repeatInterval" value="5000" />
-
<property name="repeatCount" value="-1" />
-
</bean>
- </key>
- <bean
class="org.quartz.JobDetail">
-
<property name="name" value="My Example Job" />
-
<property name="group" value="ServiceMix" />
- </bean>
- </entry>
- </map>
- </property>
- </bean>
- </sm:component>
- </sm:activationSpec>
-
- <!--
- ~ This JMS component will subscribe to the "servicemix.source" topic,
using JCA.
- ~ It means that the JMS messages will be delivered inside an XA
- ~ transaction. JBI exchanges will be sent to the "my:outputSender"
- ~ service (which is a JMS producer, so that a JMS bridge is created).
- -->
- <sm:activationSpec componentName="inputReceiver">
- <sm:component>
- <jms:component>
- <jms:endpoints>
- <jms:endpoint service="my:outputSender"
- endpoint="endpoint"
- role="consumer"
- processorName="jca"
- bootstrapContext="#bootstrapContext"
- resourceAdapter="#activeMQResourceAdapter"
- connectionFactory="#jmsFactory"
- defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
- synchronous="true">
- <jms:activationSpec>
- <amqra:activationSpec
destination="servicemix.source"
- destinationType="javax.jms.Topic" />
- </jms:activationSpec>
- </jms:endpoint>
- </jms:endpoints>
- </jms:component>
- </sm:component>
- </sm:activationSpec>
-
- <!--
- ~ This JMS publisher will publish the JBI exchange
- ~ to the "servicemix.result" topic using JCA.
- -->
- <sm:activationSpec componentName="outputSender">
- <sm:component>
- <jms:component>
- <jms:endpoints>
- <jms:endpoint service="my:outputSender"
- endpoint="endpoint"
- role="provider"
- processorName="jca"
- connectionFactory="#jmsFactory"
- jmsProviderDestinationName="servicemix.result"
- destinationStyle="topic" />
- </jms:endpoints>
- </jms:component>
- </sm:component>
- </sm:activationSpec>
-
-
- <!--
- ~ Just to demonstrate that we are sending messages,
- ~ lets trace the messages we receive.
- ~ So subscribe to the "output" topic and sent the
- ~ exchange to the trace component.
- -->
- <sm:activationSpec componentName="jmsTrace">
- <sm:component>
- <jms:component>
- <jms:endpoints>
- <jms:endpoint service="my:jmsTrace"
- endpoint="endpoint"
- role="consumer"
- processorName="jca"
- targetService="my:trace"
- bootstrapContext="#bootstrapContext"
- resourceAdapter="#activeMQResourceAdapter"
- connectionFactory="#jmsFactory"
- defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
- synchronous="true">
- <jms:activationSpec>
- <amqra:activationSpec
destination="servicemix.result"
-
destinationType="javax.jms.Topic" />
- </jms:activationSpec>
- </jms:endpoint>
- </jms:endpoints>
- </jms:component>
- </sm:component>
- </sm:activationSpec>
-
- <!--
- ~ Trace component to display exchanges to the console.
- -->
- <sm:activationSpec componentName="trace"
service="my:trace">
- <sm:component>
- <bean
class="org.apache.servicemix.components.util.TraceComponent" />
- </sm:component>
- </sm:activationSpec>
- </sm:activationSpecs>
- </sm:container>
-
- <!-- Transaction Manager -->
- <jencks:transactionManager id="transactionManager" />
-
- <!-- Work manager -->
- <jencks:workManager
+ <!-- Work manager -->
+ <jencks:workManager
id="workManager"
threadPoolSize="25"
- transactionManager="#transactionManager" />
-
- <!-- Bootstrap context for JCA -->
- <jencks:bootstrapContext
+ transactionManager="#transactionManager"/>
+
+ <!-- Bootstrap context for JCA -->
+ <jencks:bootstrapContext
id="bootstrapContext"
workManager="#workManager"
- transactionManager="#transactionManager" />
+ transactionManager="#transactionManager"/>
- <!-- the JCA Resource Adapter -->
- <amqra:resourceAdapter id="activeMQResourceAdapter"
serverUrl="tcp://localhost:61616" />
+ <!-- the JCA Resource Adapter -->
+ <amqra:resourceAdapter id="activeMQResourceAdapter"
serverUrl="tcp://localhost:61616"/>
- <!-- message broker -->
- <amq:broker id="broker" persistent="false">
- <amq:transportConnectors>
- <amq:transportConnector uri="tcp://localhost:61616" />
- </amq:transportConnectors>
- </amq:broker>
-
- <!-- JMS Xa-enabled pooled factory -->
- <amqpool:jcaPooledConnectionFactory
- name="jmsFactory"
- transactionManager="#transactionManager"
- maxConnections="10"
- brokerURL="tcp://localhost:61616"
- depends-on="broker" />
+ <!-- message broker -->
+ <amq:broker id="broker" persistent="false">
+ <amq:transportConnectors>
+ <amq:transportConnector uri="tcp://localhost:61616"/>
+ </amq:transportConnectors>
+ </amq:broker>
+
+ <!-- JMS Xa-enabled pooled factory -->
+ <amqpool:jcaPooledConnectionFactory
+ name="jmsFactory"
+ transactionManager="#transactionManager"
+ maxConnections="10"
+ brokerURL="tcp://localhost:61616"
+ depends-on="broker"/>
</beans>