Added: servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xml URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xml?rev=1088548&view=auto ============================================================================== --- servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xml (added) +++ servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xml Mon Apr 4 10:41:21 2011 @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<beans xmlns:sm="http://servicemix.apache.org/config/1.0" + xmlns:foo="http://servicemix.org/cheese/"> + + <!-- the JBI container --> + <sm:container id="jbi" flowName="st"> + <sm:activationSpecs> + + <!-- START SNIPPET: xslt --> + <sm:activationSpec componentName="transformer" service="foo:transformer"> + <sm:component><bean class="org.apache.servicemix.components.xslt.XsltComponent"> + <property name="xsltResource" value="classpath:org/apache/servicemix/components/xslt/split.xsl"/> + + <!-- lets disable automatic output of the result of the transform; only if we perform + an invoke in the XSLT will we invoke another endpoint --> + <property name="disableOutput" value="true"/> + </bean></sm:component> + </sm:activationSpec> + <!-- END SNIPPET: xslt --> + + + <sm:activationSpec componentName="service1" service="foo:service1"> + <sm:component><bean class="org.apache.servicemix.tck.ReceiverComponent"/></sm:component> + </sm:activationSpec> + <sm:activationSpec componentName="service2" service="foo:service2"> + <sm:component><bean class="org.apache.servicemix.tck.ReceiverComponent"/></sm:component> + </sm:activationSpec> + <sm:activationSpec componentName="service3" service="foo:service3"> + <sm:component><bean class="org.apache.servicemix.tck.ReceiverComponent"/></sm:component> + </sm:activationSpec> + + <sm:activationSpec componentName="receiver" service="foo:receiver"> + <sm:component><bean class="org.apache.servicemix.tck.ReceiverComponent"/></sm:component> + </sm:activationSpec> + + <sm:activationSpec componentName="trace" service="foo:trace"> + <sm:component><bean class="org.apache.servicemix.components.util.TraceComponent"/></sm:component> + </sm:activationSpec> + </sm:activationSpecs> + </sm:container> + + <bean id="client" class="org.apache.servicemix.client.DefaultServiceMixClient"> + <constructor-arg ref="jbi"/> + </bean> +</beans>
Added: servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xsl URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xsl?rev=1088548&view=auto ============================================================================== --- servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xsl (added) +++ servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/split.xsl Mon Apr 4 10:41:21 2011 @@ -0,0 +1,54 @@ +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<!-- START SNIPPET: example --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:jbi="xalan://org.apache.servicemix.components.xslt.XalanExtension" + extension-element-prefixes="jbi" + xmlns:foo="http://servicemix.org/cheese/" version="1.0"> + + <xsl:template match="/"> + + <!-- lets pass a new message body --> + <jbi:invoke service="foo:service1"> + <cheese id="{/foo/@id}">Edam</cheese> + </jbi:invoke> + + <!-- lets split the message --> + <jbi:invoke service="foo:service2"> + <xsl:copy-of select="/foo/beer"/> + </jbi:invoke> + + <!-- 1-many split --> + <xsl:for-each select="/foo/lineitem"> + <jbi:invoke service="foo:service3"> + <xsl:copy-of select="."/> + </jbi:invoke> + </xsl:for-each> + + <!-- pass the entire message to the final endpoint --> + <jbi:invoke service="foo:receiver"> + <jbi:copyProperties/> + <jbi:setOutProperty name="bar" select="/sample/@id"/> + <xsl:copy-of select="/"/> + </jbi:invoke> + + </xsl:template> +</xsl:stylesheet> +<!-- END SNIPPET: example --> Added: servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/transform.xsl URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/transform.xsl?rev=1088548&view=auto ============================================================================== --- servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/transform.xsl (added) +++ servicemix/smx3/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/transform.xsl Mon Apr 4 10:41:21 2011 @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<xsl:stylesheet + xmlns:xsl='http://www.w3.org/1999/XSL/Transform' + version='1.0'> + + <xsl:output method="xml" indent="yes" encoding="ISO-8859-1"/> + + <xsl:template match="*"> + <xsl:copy> + <xsl:copy-of select="attribute::*"/> + <xsl:apply-templates/> + </xsl:copy> + </xsl:template> + + <xsl:template match="sample"> + <transformed> + <cheese> + <xsl:apply-templates select="*|@*"/> + </cheese> + </transformed> + </xsl:template> + +</xsl:stylesheet> Added: servicemix/smx3/trunk/common/servicemix-components/src/test/resources/xbean/xbean.xml URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/common/servicemix-components/src/test/resources/xbean/xbean.xml?rev=1088548&view=auto ============================================================================== --- servicemix/smx3/trunk/common/servicemix-components/src/test/resources/xbean/xbean.xml (added) +++ servicemix/smx3/trunk/common/servicemix-components/src/test/resources/xbean/xbean.xml Mon Apr 4 10:41:21 2011 @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<beans xmlns:x="java://org.apache.servicemix.components.xbean"> + + <classpath> + <location>SpringLoaderTest.jar</location> + </classpath> + + <x:EndpointSpec + xmlns:foo="http://foo.bar.com" + serviceName="foo:myService" + endpointName="myEndpoint"> + <pojo> + <bean class="TestClass"/> + </pojo> + </x:EndpointSpec> + +</beans> Modified: servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml?rev=1088548&r1=1088547&r2=1088548&view=diff ============================================================================== --- servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml (original) +++ servicemix/smx3/trunk/distributions/apache-servicemix/pom.xml Mon Apr 4 10:41:21 2011 @@ -59,6 +59,10 @@ </dependency> <dependency> <groupId>org.apache.servicemix</groupId> + <artifactId>servicemix-components</artifactId> + </dependency> + <dependency> + <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-common</artifactId> </dependency> <dependency> Modified: servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/unix-bin.xml URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/unix-bin.xml?rev=1088548&r1=1088547&r2=1088548&view=diff ============================================================================== --- servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/unix-bin.xml (original) +++ servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/unix-bin.xml Mon Apr 4 10:41:21 2011 @@ -112,6 +112,7 @@ <dependencySet> <outputDirectory>extras</outputDirectory> <includes> + <include>org.apache.servicemix:servicemix-components</include> <include>org.apache.servicemix:servicemix-beanflow</include> </includes> </dependencySet> Modified: servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/windows-bin.xml URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/windows-bin.xml?rev=1088548&r1=1088547&r2=1088548&view=diff ============================================================================== --- servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/windows-bin.xml (original) +++ servicemix/smx3/trunk/distributions/apache-servicemix/src/main/assembly/windows-bin.xml Mon Apr 4 10:41:21 2011 @@ -104,6 +104,7 @@ <dependencySet> <outputDirectory>extras</outputDirectory> <includes> + <include>org.apache.servicemix:servicemix-components</include> <include>org.apache.servicemix:servicemix-beanflow</include> </includes> </dependencySet> Modified: servicemix/smx3/trunk/pom.xml URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/pom.xml?rev=1088548&r1=1088547&r2=1088548&view=diff ============================================================================== --- servicemix/smx3/trunk/pom.xml (original) +++ servicemix/smx3/trunk/pom.xml Mon Apr 4 10:41:21 2011 @@ -81,7 +81,7 @@ <servicemix-mail-version>2011.01</servicemix-mail-version> <servicemix-osworkflow-version>2011.01</servicemix-osworkflow-version> <servicemix-wsn2005-version>2011.01</servicemix-wsn2005-version> - <servicemix-lwcontainer-version>3.4-SNAPSHOT</servicemix-lwcontainer-version> + <servicemix-lwcontainer-version>${project.version}</servicemix-lwcontainer-version> <servicemix-bean-version>2011.01</servicemix-bean-version> <servicemix-eip-version>2011.01</servicemix-eip-version> <servicemix-script-version>2011.01</servicemix-script-version> @@ -150,6 +150,7 @@ <modules> <module>parent</module> <module>core</module> + <module>common</module> <module>deployables</module> <module>servicemix-itests</module> <module>samples</module> @@ -193,6 +194,7 @@ <id>deploy</id> <modules> <module>core</module> + <module>common</module> <module>servicemix-itests</module> <module>samples</module> <module>web</module> @@ -239,6 +241,7 @@ <modules> <module>parent</module> <module>core</module> + <module>common</module> <module>servicemix-itests</module> <module>samples</module> <module>web</module> @@ -464,6 +467,11 @@ <version>${project.version}</version> </dependency> <dependency> + <groupId>org.apache.servicemix</groupId> + <artifactId>servicemix-components</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> <groupId>org.apache.servicemix.geronimo</groupId> <artifactId>deployer-service</artifactId> <version>${project.version}</version> @@ -988,6 +996,11 @@ <version>${derby-version}</version> </dependency> <dependency> + <groupId>drools</groupId> + <artifactId>drools-all-jdk1.4</artifactId> + <version>2.1</version> + </dependency> + <dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <version>5.1.1</version> @@ -1137,6 +1150,11 @@ </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-servlet_2.4_spec</artifactId> + <version>1.1</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-servlet_3.0_spec</artifactId> <version>1.0</version> </dependency> @@ -1364,6 +1382,11 @@ <version>1.0</version> </dependency> <dependency> + <groupId>quartz</groupId> + <artifactId>quartz</artifactId> + <version>1.5.2</version> + </dependency> + <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>1.8.3</version>
