You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/04/04 18:48:53 UTC

svn commit: r644765 - in /servicemix/smx4/features/trunk: assembly/src/main/filtered-resources/ camel/servicemix-camel/ camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/ camel/servicemix-camel/src/main/resources/META-INF/services/org/ap...

Author: gnodet
Date: Fri Apr  4 09:48:24 2008
New Revision: 644765

URL: http://svn.apache.org/viewvc?rev=644765&view=rev
Log:
Add camel examples

Added:
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/META-INF/services/org/apache/camel/component/nmr
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/camel/
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/camel/camel-nmr.xml
    servicemix/smx4/features/trunk/examples/camel-nmr/   (with props)
    servicemix/smx4/features/trunk/examples/camel-nmr/pom.xml
    servicemix/smx4/features/trunk/examples/camel-nmr/src/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/camel/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml
    servicemix/smx4/features/trunk/examples/camel-osgi/   (with props)
    servicemix/smx4/features/trunk/examples/camel-osgi/pom.xml
    servicemix/smx4/features/trunk/examples/camel-osgi/src/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/spring/
    servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/spring/beans.xml
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/   (with props)
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/pom.xml
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorld.java
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorldImpl.java
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/MyTransform.java
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/spring/
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/spring/beans.xml
Modified:
    servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/pom.xml
    servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/ServiceMixComponent.java
    servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestination.java
    servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestinationOutputStream.java
    servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/resources/META-INF/cxf/transport/nmr/cxf-transport-nmr.xml
    servicemix/smx4/features/trunk/examples/pom.xml

Modified: servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml Fri Apr  4 09:48:24 2008
@@ -61,10 +61,25 @@
 		<bundle>mvn:org.apache.servicemix.ejb3/org.apache.servicemix.cxf.transport.osgi/${version}</bundle>
 	</feature>
 	<feature name="cxf-nmr">
+		<feature>cxf</feature>
 		<feature>nmr</feature>
 		<bundle>mvn:org.apache.servicemix.ejb3/org.apache.servicemix.cxf.transport.nmr/${version}</bundle>
 		<bundle>mvn:org.apache.servicemix.ejb3/org.apache.servicemix.cxf.binding.nmr/${version}</bundle>
 	</feature>
+	<feature name="camel">
+		<bundle>mvn:org.apache.geronimo.specs/geronimo-activation_1.1_spec/${geronimo.activation.version}</bundle>
+		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-api-2.0/${version}</bundle>
+		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl-2.0.3/${version}</bundle>
+		<bundle>mvn:org.springframework/spring-tx/${spring.version}</bundle>
+		<bundle>mvn:org.apache.camel/camel-core/${camel.version}</bundle>
+		<bundle>mvn:org.apache.camel/camel-spring/${camel.version}</bundle>
+		<bundle>mvn:org.apache.camel/camel-osgi/${camel.version}</bundle>
+	</feature>
+	<feature name="camel-nmr">
+		<feature>camel</feature>
+		<feature>nmr</feature>
+		<bundle>mvn:org.apache.servicemix.camel/org.apache.servicemix.camel.component/${version}</bundle>
+	</feature>
 	<feature name="examples-cxf-osgi">
 		<feature>cxf-osgi</feature>
 		<bundle>mvn:org.apache.servicemix.examples/cxf-osgi/${version}</bundle>
@@ -72,5 +87,18 @@
 	<feature name="examples-cxf-nmr">
 		<feature>cxf-nmr</feature>
 		<bundle>mvn:org.apache.servicemix.examples/cxf-nmr/${version}</bundle>
+	</feature>
+	<feature name="examples-camel-osgi">
+		<feature>camel</feature>
+		<bundle>mvn:org.apache.servicemix.examples/camel-osgi/${version}</bundle>
+	</feature>
+	<feature name="examples-camel-nmr">
+		<feature>camel-nmr</feature>
+		<bundle>mvn:org.apache.servicemix.examples/camel-nmr/${version}</bundle>
+	</feature>
+	<feature name="examples-cxf-camel-nmr">
+		<feature>camel-nmr</feature>
+		<feature>cxf-nmr</feature>
+		<bundle>mvn:org.apache.servicemix.examples/cxf-camel-nmr/${version}</bundle>
 	</feature>
 </features>

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/pom.xml?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/pom.xml (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/pom.xml Fri Apr  4 09:48:24 2008
@@ -125,8 +125,8 @@
                 <configuration>
                     <instructions>
                         <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
-                        <Export-Package>${pom.artifactId}</Export-Package>
-                        <DynamicImport-Package>*</DynamicImport-Package>
+                        <Import-Package>*</Import-Package>
+                        <Export-Package>org.apache.servicemix.camel*</Export-Package>
                     </instructions>
                 </configuration>
             </plugin>

Modified: servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/ServiceMixComponent.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/ServiceMixComponent.java?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/ServiceMixComponent.java (original)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/ServiceMixComponent.java Fri Apr  4 09:48:24 2008
@@ -34,7 +34,7 @@
 
     public NMR getNmr() {
         if (nmr == null) {
-            nmr = getCamelContext().getRegistry().lookup("nmr", NMR.class);
+            nmr = getCamelContext().getRegistry().lookup(NMR.class.getName(), NMR.class);
         }
         return nmr;
     }

Added: servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/META-INF/services/org/apache/camel/component/nmr
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/META-INF/services/org/apache/camel/component/nmr?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/META-INF/services/org/apache/camel/component/nmr (added)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/META-INF/services/org/apache/camel/component/nmr Fri Apr  4 09:48:24 2008
@@ -0,0 +1,18 @@
+#
+# 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.
+#
+
+class=org.apache.servicemix.camel.ServiceMixComponent

Added: servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/camel/camel-nmr.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/camel/camel-nmr.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/camel/camel-nmr.xml (added)
+++ servicemix/smx4/features/trunk/camel/servicemix-camel/src/main/resources/org/apache/servicemix/camel/camel-nmr.xml Fri Apr  4 09:48:24 2008
@@ -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="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:osgi="http://www.springframework.org/schema/osgi"
+       xmlns:camel-osgi="http://activemq.apache.org/camel/schema/osgi"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/osgi  http://www.springframework.org/schema/osgi/spring-osgi.xsd
+       http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+       http://activemq.apache.org/camel/schema/osgi http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd">
+
+    <bean id="nmr" class="org.apache.servicemix.camel.ServiceMixComponent">
+        <property name="nmr">
+            <osgi:reference interface="org.apache.servicemix.nmr.api.NMR" />
+        </property>
+    </bean>
+
+</beans>

Modified: servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestination.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestination.java?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestination.java (original)
+++ servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestination.java Fri Apr  4 09:48:24 2008
@@ -146,8 +146,7 @@
             // setup the message to be send back
             Channel dc = channel;
             message.put(Exchange.class, inMessage.get(Exchange.class));
-            message.setContent(OutputStream.class,
-                               new NMRDestinationOutputStream(inMessage, dc));
+            message.setContent(OutputStream.class, new NMRDestinationOutputStream(inMessage, dc));
         }        
 
         protected Logger getLogger() {

Modified: servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestinationOutputStream.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestinationOutputStream.java?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestinationOutputStream.java (original)
+++ servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/java/org/apache/servicemix/cxf/transport/nmr/NMRDestinationOutputStream.java Fri Apr  4 09:48:24 2008
@@ -69,10 +69,8 @@
             if (inMessage.getExchange().isOneWay()) {
                 return;
             } else {
-                
                 InputStream bais = getInputStream();
-                LOG.finest(new org.apache.cxf.common.i18n.Message(
-                    "BUILDING.DOCUMENT", LOG).toString());
+                LOG.finest(new org.apache.cxf.common.i18n.Message("BUILDING.DOCUMENT", LOG).toString());
                 DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                 docBuilderFactory.setNamespaceAware(true);
                 DocumentBuilder builder = docBuilderFactory.newDocumentBuilder();
@@ -89,7 +87,6 @@
                     }
                 } else {
                     xchng.getOut().setBody(new DOMSource(doc));
-                    
                 }
                 LOG.fine(new org.apache.cxf.common.i18n.Message("POST.DISPATCH", LOG).toString());
                 channel.send(xchng);

Modified: servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/resources/META-INF/cxf/transport/nmr/cxf-transport-nmr.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/resources/META-INF/cxf/transport/nmr/cxf-transport-nmr.xml?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/resources/META-INF/cxf/transport/nmr/cxf-transport-nmr.xml (original)
+++ servicemix/smx4/features/trunk/ejb3/cxf-transport-nmr/src/main/resources/META-INF/cxf/transport/nmr/cxf-transport-nmr.xml Fri Apr  4 09:48:24 2008
@@ -28,7 +28,9 @@
 	      id="org.apache.servicemix.cxf.transport.nmr.NMRTransportFactory"
 	      lazy-init="true">
         <property name="bus" ref="cxf"/>
-        <property name="nmr" ref="nmr"/>
+        <property name="nmr">
+            <osgi:reference interface="org.apache.servicemix.nmr.api.NMR"/>
+        </property>
         <property name="transportIds">
             <list>
                 <value>http://cxf.apache.org/transports/nmr</value>
@@ -37,5 +39,4 @@
         </property>
     </bean>
 
-    <osgi:reference id="nmr" interface="org.apache.servicemix.nmr.api.NMR"/>
 </beans>

Propchange: servicemix/smx4/features/trunk/examples/camel-nmr/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  4 09:48:24 2008
@@ -0,0 +1,7 @@
+target
+*.iml
+*.ipr
+*.iws
+.classpath
+.project
+.settings

Added: servicemix/smx4/features/trunk/examples/camel-nmr/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-nmr/pom.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-nmr/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/camel-nmr/pom.xml Fri Apr  4 09:48:24 2008
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <!--
+
+        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.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples</groupId>
+    <artifactId>camel-nmr</artifactId>
+    <packaging>bundle</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>ServiceMix Example :: Camel NMR</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons.logging.version}</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Import-Package>org.apache.servicemix.camel,*</Import-Package>
+                        <Private-Package>org.apache.servicemix.examples.camel</Private-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java (added)
+++ servicemix/smx4/features/trunk/examples/camel-nmr/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java Fri Apr  4 09:48:24 2008
@@ -0,0 +1,56 @@
+/**
+ * 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.
+ */
+package org.apache.servicemix.examples.camel;
+
+import java.util.Date;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @version $Revision: 640450 $
+ */
+public class MyTransform  {
+    private static final transient Log LOG = LogFactory.getLog(MyTransform.class);
+    private boolean verbose = true;
+    private String prefix = "MyTransform";
+
+    public Object transform(Object body) {
+        String answer = prefix + " set body:  " + new Date();
+        if (verbose) {
+            System.out.println(">>>> " + answer);
+        }
+        LOG.info(">>>> " + answer);
+        return answer;
+    }
+
+    public boolean isVerbose() {
+        return verbose;
+    }
+
+    public void setVerbose(boolean verbose) {
+        this.verbose = verbose;
+    }
+
+    public String getPrefix() {
+        return prefix;
+    }
+
+    public void setPrefix(String prefix) {
+        this.prefix = prefix;
+    }
+}

Added: servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml (added)
+++ servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml Fri Apr  4 09:48:24 2008
@@ -0,0 +1,49 @@
+<?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="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:osgi="http://www.springframework.org/schema/osgi"
+       xmlns:camel-osgi="http://activemq.apache.org/camel/schema/osgi"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/osgi  http://www.springframework.org/schema/osgi/spring-osgi.xsd
+       http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+       http://activemq.apache.org/camel/schema/osgi http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd">
+
+  <import resource="classpath:org/apache/servicemix/camel/camel-nmr.xml" />
+
+  <camel-osgi:camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
+	<!-- Route periodically sent events into the NMR -->
+    <route>
+      <from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>
+      <to uri="nmr:ExampleRouter"/>
+    </route>
+    <!-- Route exchange from the NMR endpoint to a log endpoint -->
+    <route>
+      <from uri="nmr:ExampleRouter"/>
+      <bean ref="myTransform" method="transform"/>
+      <to uri="log:ExampleRouter"/>
+    </route>
+  </camel-osgi:camelContext>
+
+  <bean id="myTransform" class="org.apache.servicemix.examples.camel.MyTransform">
+    <property name="prefix" value="MyTransform"/>
+  </bean>
+
+</beans>

Propchange: servicemix/smx4/features/trunk/examples/camel-osgi/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  4 09:48:24 2008
@@ -0,0 +1,7 @@
+target
+*.iml
+*.ipr
+*.iws
+.classpath
+.project
+.settings

Added: servicemix/smx4/features/trunk/examples/camel-osgi/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-osgi/pom.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-osgi/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/camel-osgi/pom.xml Fri Apr  4 09:48:24 2008
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <!--
+
+        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.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples</groupId>
+    <artifactId>camel-osgi</artifactId>
+    <packaging>bundle</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>ServiceMix Example :: Camel OSGi</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons.logging.version}</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Import-Package>*</Import-Package>
+                        <Private-Package>org.apache.servicemix.examples.camel</Private-Package>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java (added)
+++ servicemix/smx4/features/trunk/examples/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java Fri Apr  4 09:48:24 2008
@@ -0,0 +1,56 @@
+/**
+ * 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.
+ */
+package org.apache.servicemix.examples.camel;
+
+import java.util.Date;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @version $Revision: 640450 $
+ */
+public class MyTransform  {
+    private static final transient Log LOG = LogFactory.getLog(MyTransform.class);
+    private boolean verbose = true;
+    private String prefix = "MyTransform";
+
+    public Object transform(Object body) {
+        String answer = prefix + " set body:  " + new Date();
+        if (verbose) {
+            System.out.println(">>>> " + answer);
+        }
+        LOG.info(">>>> " + answer);
+        return answer;
+    }
+
+    public boolean isVerbose() {
+        return verbose;
+    }
+
+    public void setVerbose(boolean verbose) {
+        this.verbose = verbose;
+    }
+
+    public String getPrefix() {
+        return prefix;
+    }
+
+    public void setPrefix(String prefix) {
+        this.prefix = prefix;
+    }
+}

Added: servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/spring/beans.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/spring/beans.xml (added)
+++ servicemix/smx4/features/trunk/examples/camel-osgi/src/main/resources/META-INF/spring/beans.xml Fri Apr  4 09:48:24 2008
@@ -0,0 +1,39 @@
+<?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="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:osgi="http://activemq.apache.org/camel/schema/osgi"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+       http://activemq.apache.org/camel/schema/osgi http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd">
+
+  <osgi:camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
+    <route>
+      <from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>
+      <bean ref="myTransform" method="transform"/>
+      <to uri="log:ExampleRouter"/>
+    </route>
+  </osgi:camelContext>
+
+  <bean id="myTransform" class="org.apache.servicemix.examples.camel.MyTransform">
+    <property name="prefix" value="MyTransform"/>
+  </bean>
+
+</beans>

Propchange: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Apr  4 09:48:24 2008
@@ -0,0 +1,7 @@
+target
+*.iml
+*.ipr
+*.iws
+.classpath
+.project
+.settings

Added: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-camel-nmr/pom.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-camel-nmr/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-camel-nmr/pom.xml Fri Apr  4 09:48:24 2008
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <!--
+
+        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.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples</groupId>
+    <artifactId>cxf-camel-nmr</artifactId>
+    <packaging>bundle</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>ServiceMix Example :: CXF-Camel NMR</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-core</artifactId>
+            <version>${camel.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
+            <version>${geronimo.wsmetadata.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons.logging.version}</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Import-Package>javax.jws,META-INF.cxf,META-INF.cxf.transport.nmr,org.apache.servicemix.camel,*</Import-Package>
+                        <Private-Package>org.apache.servicemix.examples.cxfcamel</Private-Package>
+                        <Require-Bundle>org.apache.servicemix.bundles.woodstox-3.2.3</Require-Bundle>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Added: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorld.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorld.java?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorld.java (added)
+++ servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorld.java Fri Apr  4 09:48:24 2008
@@ -0,0 +1,28 @@
+/**
+ * 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: service
+package org.apache.servicemix.examples.cxfcamel;
+
+import javax.jws.WebService;
+
+@WebService
+public interface HelloWorld {
+    String sayHi(String text);
+}
+// END SNIPPET: service

Added: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorldImpl.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorldImpl.java?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorldImpl.java (added)
+++ servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/HelloWorldImpl.java Fri Apr  4 09:48:24 2008
@@ -0,0 +1,31 @@
+/**
+ * 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: service
+package org.apache.servicemix.examples.cxfcamel;
+
+import javax.jws.WebService;
+
+@WebService(endpointInterface = "org.apache.servicemix.examples.cxfcamel.HelloWorld")
+public class HelloWorldImpl implements HelloWorld {
+
+    public String sayHi(String text) {
+        return "Hello " + text;
+    }
+}
+// END SNIPPET: service

Added: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/MyTransform.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/MyTransform.java?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/MyTransform.java (added)
+++ servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/java/org/apache/servicemix/examples/cxfcamel/MyTransform.java Fri Apr  4 09:48:24 2008
@@ -0,0 +1,66 @@
+/**
+ * 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.
+ */
+package org.apache.servicemix.examples.cxfcamel;
+
+import javax.xml.transform.Source;
+
+import org.apache.camel.converter.jaxp.StringSource;
+import org.apache.camel.converter.jaxp.XmlConverter;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @version $Revision: 640450 $
+ */
+public class MyTransform  {
+
+    private static final transient Log LOG = LogFactory.getLog(MyTransform.class);
+    private boolean verbose = true;
+    private String value;
+
+    public Object transform(Object body) {
+        if (verbose) {
+            System.out.println(">>>> " + value);
+        }
+        LOG.info(">>>> " + value);
+        return new StringSource(value);
+    }
+
+    public void display(Source body) throws Exception {
+        String str = new XmlConverter().toString(body);
+        if (verbose) {
+            System.out.println("<<<< " + str);
+        }
+        LOG.info("<<<< " + str);
+    }
+
+    public boolean isVerbose() {
+        return verbose;
+    }
+
+    public void setVerbose(boolean verbose) {
+        this.verbose = verbose;
+    }
+
+    public String getValue() {
+        return value;
+    }
+
+    public void setValue(String value) {
+        this.value = value;
+    }
+}

Added: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/spring/beans.xml?rev=644765&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/spring/beans.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-camel-nmr/src/main/resources/META-INF/spring/beans.xml Fri Apr  4 09:48:24 2008
@@ -0,0 +1,57 @@
+<?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.
+-->
+<!-- START SNIPPET: beans -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:osgi="http://www.springframework.org/schema/osgi"
+       xmlns:camel-osgi="http://activemq.apache.org/camel/schema/osgi"
+       xmlns:jaxws="http://cxf.apache.org/jaxws"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+       http://www.springframework.org/schema/osgi  http://www.springframework.org/schema/osgi/spring-osgi.xsd
+       http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+       http://activemq.apache.org/camel/schema/osgi http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd
+       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+    <import resource="classpath:META-INF/cxf/cxf.xml" />
+    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+    <import resource="classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml" />
+    <import resource="classpath:org/apache/servicemix/camel/camel-nmr.xml" />
+
+    <camel-osgi:camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
+        <!-- Route periodically sent events into the NMR -->
+        <route>
+            <from uri="timer://myTimer?fixedRate=true&amp;period=2000&amp;exchangePattern=InOut" />
+            <bean ref="myTransform" method="transform"/>
+            <to uri="nmr:{http://cxfcamel.examples.servicemix.apache.org/}HelloWorldImplPort"/>
+            <bean ref="myTransform" method="display" />
+        </route>
+    </camel-osgi:camelContext>
+
+    <bean id="myTransform" class="org.apache.servicemix.examples.cxfcamel.MyTransform">
+        <property name="value"><value><![CDATA[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:sayHi xmlns:ns1="http://cxf.examples.servicemix.apache.org/"><arg0>Guillaume</arg0></ns1:sayHi></soap:Body></soap:Envelope>]]></value></property>
+    </bean>
+
+    <jaxws:endpoint id="helloWorld"
+	                implementor="org.apache.servicemix.examples.cxfcamel.HelloWorldImpl"
+	                address="nmr:HelloWorld" />
+
+</beans>
+<!-- END SNIPPET: beans -->

Modified: servicemix/smx4/features/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/pom.xml?rev=644765&r1=644764&r2=644765&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/examples/pom.xml (original)
+++ servicemix/smx4/features/trunk/examples/pom.xml Fri Apr  4 09:48:24 2008
@@ -35,6 +35,9 @@
     <name>ServiceMix Examples</name>
 
     <modules>
+        <module>camel-nmr</module>
+        <module>camel-osgi</module>
+        <module>cxf-camel-nmr</module>
         <module>cxf-nmr</module>
         <module>cxf-osgi</module>
     </modules>