servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r669457 - in /servicemix/smx4/features/trunk: ./ activemq/activemq-commands/ activemq/activemq-rm/ assembly/ assembly/src/main/descriptors/ camel/bundles/commons-io/ camel/bundles/commons-jxpath/ camel/bundles/jaxb-impl/ camel/servicemix-ca...
Date Thu, 19 Jun 2008 11:54:49 GMT
Author: gertv
Date: Thu Jun 19 04:54:48 2008
New Revision: 669457

URL: http://svn.apache.org/viewvc?rev=669457&view=rev
Log:
SMX4-29: Include examples with binary distribution and add readmes

Added:
    servicemix/smx4/features/trunk/examples/camel-nmr/README.txt
    servicemix/smx4/features/trunk/examples/camel-osgi/README.txt
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/README.txt
    servicemix/smx4/features/trunk/examples/cxf-nmr/README.txt
    servicemix/smx4/features/trunk/examples/cxf-osgi/README.txt
    servicemix/smx4/features/trunk/examples/cxf-osgi/client.html
Modified:
    servicemix/smx4/features/trunk/   (props changed)
    servicemix/smx4/features/trunk/activemq/activemq-commands/   (props changed)
    servicemix/smx4/features/trunk/activemq/activemq-rm/   (props changed)
    servicemix/smx4/features/trunk/assembly/   (props changed)
    servicemix/smx4/features/trunk/assembly/pom.xml
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-src.xml
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-src.xml
    servicemix/smx4/features/trunk/camel/bundles/commons-io/   (props changed)
    servicemix/smx4/features/trunk/camel/bundles/commons-jxpath/   (props changed)
    servicemix/smx4/features/trunk/camel/bundles/jaxb-impl/   (props changed)
    servicemix/smx4/features/trunk/camel/servicemix-camel/   (props changed)
    servicemix/smx4/features/trunk/cxf/bundles/neethi/   (props changed)
    servicemix/smx4/features/trunk/cxf/bundles/saaj-impl/   (props changed)
    servicemix/smx4/features/trunk/cxf/bundles/wsdl4j/   (props changed)
    servicemix/smx4/features/trunk/cxf/bundles/xmlresolver/   (props changed)
    servicemix/smx4/features/trunk/cxf/bundles/xmlschema/   (props changed)
    servicemix/smx4/features/trunk/cxf/cxf-binding-nmr/   (props changed)
    servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/   (props changed)
    servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/   (props changed)
    servicemix/smx4/features/trunk/examples/camel-nmr/   (props changed)
    servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml
    servicemix/smx4/features/trunk/examples/camel-osgi/   (props changed)
    servicemix/smx4/features/trunk/examples/cxf-camel-nmr/   (props changed)
    servicemix/smx4/features/trunk/examples/cxf-nmr/   (props changed)
    servicemix/smx4/features/trunk/examples/cxf-osgi/   (props changed)
    servicemix/smx4/features/trunk/examples/itests/   (props changed)
    servicemix/smx4/features/trunk/management/acegi/   (props changed)
    servicemix/smx4/features/trunk/management/core/   (props changed)
    servicemix/smx4/features/trunk/transaction/bundles/howl/   (props changed)
    servicemix/smx4/features/trunk/transaction/bundles/jencks/   (props changed)
    servicemix/smx4/features/trunk/transaction/transaction/   (props changed)
    servicemix/smx4/features/trunk/war/bundles/jasper/   (props changed)
    servicemix/smx4/features/trunk/war/deployer/   (props changed)

Propchange: servicemix/smx4/features/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,4 @@
 .classpath
 .project
 .settings
-
-
+velocity.log

Propchange: servicemix/smx4/features/trunk/activemq/activemq-commands/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Propchange: servicemix/smx4/features/trunk/activemq/activemq-rm/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Propchange: servicemix/smx4/features/trunk/assembly/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,4 +5,4 @@
 .classpath
 .project
 .settings
-
+velocity.log

Modified: servicemix/smx4/features/trunk/assembly/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/pom.xml?rev=669457&r1=669456&r2=669457&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/pom.xml (original)
+++ servicemix/smx4/features/trunk/assembly/pom.xml Thu Jun 19 04:54:48 2008
@@ -560,7 +560,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-assembly-plugin</artifactId>
-                <version>2.1</version>
+                <version>2.2-beta-2</version>
                 <executions>
                     <execution>
                         <id>unix-bin</id>

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml?rev=669457&r1=669456&r2=669457&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml Thu Jun 19 04:54:48
2008
@@ -26,6 +26,19 @@
         <fileSet>
             <directory>target/dependencies/unix/apache-servicemix-kernel-${servicemix.kernel.version}</directory>
             <outputDirectory>/</outputDirectory>
+            <excludes>
+              <exclude>bin/*</exclude>
+            </excludes>
+        </fileSet>
+
+        <!-- Copy over bin/servicemix separately to get the correct file mode -->
+        <fileSet>
+            <directory>target/dependencies/unix/apache-servicemix-kernel-${servicemix.kernel.version}</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+              <include>bin/*</include>
+            </includes>
+            <fileMode>0755</fileMode>
         </fileSet>
 
         <!-- Copy license and other files from root -->
@@ -77,6 +90,17 @@
             <fileMode>0755</fileMode>
         </fileSet>
 
+        <!-- Copy over the examples -->
+        <fileSet>
+            <directory>../examples</directory>
+            <filtered>true</filtered>
+            <outputDirectory>/examples/</outputDirectory>
+            <lineEnding>unix</lineEnding>
+            <excludes>
+                <exclude>**/itests/**</exclude>
+                <exclude>**/target/**</exclude>
+            </excludes>
+        </fileSet>
     </fileSets>
 
     <files>
@@ -84,14 +108,14 @@
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/LICENSE</source>
             <outputDirectory>/</outputDirectory>
             <destName>LICENSE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
         <file>
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/NOTICE</source>
             <outputDirectory>/</outputDirectory>
             <destName>NOTICE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
     </files>
@@ -101,6 +125,7 @@
         <!-- Mandatory bundles for everything -->
         <dependencySet>
             <outputDirectory>/system</outputDirectory>
+            <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
             <unpack>false</unpack>
             <scope>runtime</scope>
             <includes>

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-src.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-src.xml?rev=669457&r1=669456&r2=669457&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-src.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-src.xml Thu Jun 19 04:54:48
2008
@@ -23,7 +23,7 @@
     <fileSets>
         <!-- Copy license and other files from root -->
         <fileSet>
-            <directory>..</directory>
+            <directory>${basedir}/..</directory>
             <outputDirectory>/</outputDirectory>
             <includes>
                 <include>BUILDING.txt</include>
@@ -35,7 +35,7 @@
 
         <!-- Binary Files -->
         <fileSet>
-            <directory>..</directory>
+            <directory>${basedir}/..</directory>
             <outputDirectory>src</outputDirectory>
             <includes>
                 <include>**/*.jpeg</include>
@@ -62,7 +62,7 @@
 
         <!-- Text Files -->
         <fileSet>
-            <directory>..</directory>
+            <directory>${basedir}/..</directory>
             <outputDirectory>src</outputDirectory>
             <includes>
                 <include>**/*</include>
@@ -109,14 +109,14 @@
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/LICENSE</source>
             <outputDirectory>/</outputDirectory>
             <destName>LICENSE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
         <file>
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/NOTICE</source>
             <outputDirectory>/</outputDirectory>
             <destName>NOTICE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
     </files>

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml?rev=669457&r1=669456&r2=669457&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml Thu Jun 19
04:54:48 2008
@@ -68,6 +68,17 @@
           <outputDirectory>/</outputDirectory>
       </fileSet>
       
+      <!-- Copy over the examples -->
+      <fileSet>
+          <directory>../examples</directory>
+          <filtered>true</filtered>
+          <outputDirectory>/examples/</outputDirectory>
+          <lineEnding>dos</lineEnding>
+          <excludes>
+              <exclude>**/itests/**</exclude>
+              <exclude>**/target/**</exclude>
+          </excludes>
+      </fileSet>
     </fileSets>
 
     <files>
@@ -75,14 +86,14 @@
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/LICENSE</source>
             <outputDirectory>/</outputDirectory>
             <destName>LICENSE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
         <file>
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/NOTICE</source>
             <outputDirectory>/</outputDirectory>
             <destName>NOTICE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
     </files>
@@ -92,6 +103,7 @@
         <!-- Mandatory bundles for everything -->
         <dependencySet>
             <outputDirectory>/system</outputDirectory>
+            <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
             <unpack>false</unpack>
             <scope>runtime</scope>
             <includes>

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-src.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-src.xml?rev=669457&r1=669456&r2=669457&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-src.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-src.xml Thu Jun 19
04:54:48 2008
@@ -23,7 +23,7 @@
     <fileSets>
         <!-- Copy license and other files from root -->
         <fileSet>
-            <directory>..</directory>
+            <directory>${basedir}/..</directory>
             <outputDirectory>/</outputDirectory>
             <includes>
                 <include>BUILDING.txt</include>
@@ -35,7 +35,7 @@
 
         <!-- Binary Files -->
         <fileSet>
-            <directory>..</directory>
+            <directory>${basedir}/..</directory>
             <outputDirectory>src</outputDirectory>
             <includes>
                 <include>**/*.jpeg</include>
@@ -62,7 +62,7 @@
 
         <!-- Text Files -->
         <fileSet>
-            <directory>..</directory>
+            <directory>${basedir}/..</directory>
             <outputDirectory>src</outputDirectory>
             <includes>
                 <include>**/*</include>
@@ -110,14 +110,14 @@
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/LICENSE</source>
             <outputDirectory>/</outputDirectory>
             <destName>LICENSE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
         <file>
             <source>${basedir}/target/maven-shared-archive-resources/META-INF/NOTICE</source>
             <outputDirectory>/</outputDirectory>
             <destName>NOTICE.txt</destName>
-            <fileMode>420</fileMode> <!-- See http://jira.codehaus.org/browse/MASSEMBLY-173
-->
+            <fileMode>0644</fileMode>
             <lineEnding>unix</lineEnding>
         </file>
     </files>

Propchange: servicemix/smx4/features/trunk/camel/bundles/commons-io/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -0,0 +1,3 @@
+.project
+target
+bin

Propchange: servicemix/smx4/features/trunk/camel/bundles/commons-jxpath/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -0,0 +1,3 @@
+.project
+target
+bin

Propchange: servicemix/smx4/features/trunk/camel/bundles/jaxb-impl/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,4 +5,4 @@
 .classpath
 .project
 .settings
-
+bin

Propchange: servicemix/smx4/features/trunk/camel/servicemix-camel/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -7,5 +7,4 @@
 .classpath
 .project
 .settings
-
-
+bin

Propchange: servicemix/smx4/features/trunk/cxf/bundles/neethi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,3 +5,4 @@
 .classpath
 .project
 .settings
+bin

Propchange: servicemix/smx4/features/trunk/cxf/bundles/saaj-impl/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,4 @@
 .classpath
 .project
 .settings
-
-
+bin

Propchange: servicemix/smx4/features/trunk/cxf/bundles/wsdl4j/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,5 @@
 .classpath
 .project
 .settings
-
+bin
 

Propchange: servicemix/smx4/features/trunk/cxf/bundles/xmlresolver/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,3 +5,4 @@
 .classpath
 .project
 .settings
+bin

Propchange: servicemix/smx4/features/trunk/cxf/bundles/xmlschema/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,5 @@
 .classpath
 .project
 .settings
-
+bin
 

Propchange: servicemix/smx4/features/trunk/cxf/cxf-binding-nmr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,5 @@
 .classpath
 .project
 .settings
-
+bin
 

Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-nmr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,5 @@
 .classpath
 .project
 .settings
-
+bin
 

Propchange: servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,3 +5,4 @@
 .classpath
 .project
 .settings
+bin

Propchange: servicemix/smx4/features/trunk/examples/camel-nmr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Added: servicemix/smx4/features/trunk/examples/camel-nmr/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-nmr/README.txt?rev=669457&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-nmr/README.txt (added)
+++ servicemix/smx4/features/trunk/examples/camel-nmr/README.txt Thu Jun 19 04:54:48 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.
+ */
+
+Welcome to the ServiceMix camel nmr example
+==========================================
+
+This example demonstrates using Apache Camel to deploy EIP routes in
+Servicemix.
+
+Quick steps to install the sample
+---------------------------------
+
+Launch the ServiceMix Kernel by running
+  bin/servicemix
+in the root dir of this distribution.
+
+When inside the console, if you haven't already done so, addUrls for the
+nmr and kernel features:
+  features addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features
+  features addUrl mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+Next install the examples-camel-nmr feature:
+  features install examples-camel-nmr
+
+If you have all the bundles available in your local repo, the installation
+of the example will be very fast, otherwise it may take some time to
+download everything needed.
+
+Testing the example
+-------------------
+
+Once the example feature is installed, periodic events are routed to the
+NMR to the transform method of the MyTransform class and finally to the
+ExampleRouter log endpoint.  The transform method will print the messages
+to the console: 
+
+>>>> MyTransform set body:  Tue Jun 10 16:56:47 NDT 2008
+
+You can view the route configuration in META-INF/spring/beans.xml.
+
+Finally, uninstall the examples-camel-nmr feature:
+  features uninstall examples-camel-nmr
+
+As well, you can view the log entries in the ServiceMix log:
+  log d
+
+How does it work?
+-----------------
+
+The installation leverages ServiceMix Kernel by installing what's called
+'features'. You can see the features definition file using the following
+command inside the ServiceMix console:
+
+utils cat mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+The list of available features can be obtained using:
+
+features list
+
+

Modified: 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=669457&r1=669456&r2=669457&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml
(original)
+++ servicemix/smx4/features/trunk/examples/camel-nmr/src/main/resources/META-INF/spring/beans.xml
Thu Jun 19 04:54:48 2008
@@ -29,7 +29,7 @@
   <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 periodically sent events into the NMR -->
     <route>
       <from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>
       <to uri="nmr:ExampleRouter"/>

Propchange: servicemix/smx4/features/trunk/examples/camel-osgi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Added: servicemix/smx4/features/trunk/examples/camel-osgi/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/camel-osgi/README.txt?rev=669457&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/camel-osgi/README.txt (added)
+++ servicemix/smx4/features/trunk/examples/camel-osgi/README.txt Thu Jun 19 04:54:48 2008
@@ -0,0 +1,73 @@
+/*
+ * 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.
+ */
+
+Welcome to the ServiceMix camel osgi example
+==========================================
+
+This example demonstrates using Apache Camel to deploy EIP routes in
+Servicemix.
+
+Quick steps to install the sample
+---------------------------------
+
+Launch the ServiceMix Kernel by running
+  bin/servicemix
+in the root dir of this distribution.
+
+When inside the console, if you haven't already done so, addUrls for the
+nmr and kernel features:
+  features addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features
+  features addUrl mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+Next install the examples-camel-osgi feature:
+  features install examples-camel-osgi
+
+If you have all the bundles available in your local repo, the installation
+of the example will be very fast, otherwise it may take some time to
+download everything needed.
+
+Testing the example
+-------------------
+
+Once the example feature is installed, periodic events are routed to the
+transform method of the MyTransform class which prints output to the 
+console: 
+
+>>>> MyTransform set body:  Tue Jun 10 16:56:47 NDT 2008
+
+You can view the route configuration in META-INF/spring/beans.xml.
+
+Finally, uninstall the examples-camel-osgi feature:
+  features uninstall examples-camel-osgi
+
+As well, you can view ExampleRouter log entries in the ServiceMix log:
+  log d
+
+How does it work?
+-----------------
+
+The installation leverages ServiceMix Kernel by installing what's called
+'features'. You can see the features definition file using the following
+command inside the ServiceMix console:
+
+utils cat mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+The list of available features can be obtained using:
+
+features list
+
+

Propchange: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Added: servicemix/smx4/features/trunk/examples/cxf-camel-nmr/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-camel-nmr/README.txt?rev=669457&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-camel-nmr/README.txt (added)
+++ servicemix/smx4/features/trunk/examples/cxf-camel-nmr/README.txt Thu Jun 19 04:54:48 2008
@@ -0,0 +1,69 @@
+/*
+ * 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.
+ */
+
+Welcome to the ServiceMix cxf camel nmr example
+==========================================
+
+This example demonstrates the use of CXF and CAMEL exposed to the ServiceMix
+nmr.
+
+Quick steps to install the sample
+---------------------------------
+
+Launch the ServiceMix Kernel by running
+  bin/servicemix
+in the root dir of this distribution.
+
+When inside the console, just run the following commands to install the
+example:
+
+  features addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features
+  features addUrl mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+  features install examples-cxf-camel-nmr
+
+If you have all the bundles available in your local repo, the installation
+of the example will be very fast, otherwise it may take some time to
+download everything needed.
+
+Testing the example
+-------------------
+
+When the example is installed, periodic soap messages are displayed by
+the transform method of the MyTransform class.  These messages are routed
+to the CXF endpoint, and the responses are routed to the display method of
+the MyTransform class.
+
+Finally, uninstall the examples-camel-nmr feature:
+  features uninstall examples-cxf-camel-nmr
+
+You can also examine the ServiceMix log to see the activity:
+  log display
+
+How does it work?
+-----------------
+
+The installation leverages ServiceMix Kernel by installing what's called
+'features'. You can see the features definition file using the following
+command inside ServiceMix console:
+
+utils cat mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+The list of available features can be obtained using:
+
+features list
+
+

Propchange: servicemix/smx4/features/trunk/examples/cxf-nmr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Added: servicemix/smx4/features/trunk/examples/cxf-nmr/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-nmr/README.txt?rev=669457&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-nmr/README.txt (added)
+++ servicemix/smx4/features/trunk/examples/cxf-nmr/README.txt Thu Jun 19 04:54:48 2008
@@ -0,0 +1,67 @@
+/*
+ * 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.
+ */
+
+Welcome to the ServiceMix cxf nmr example
+==========================================
+
+This example leverages CXF and Spring-DM to publish a web service to the nmr.
+
+Quick steps to install the sample
+---------------------------------
+
+Launch the ServiceMix Kernel by running
+  bin/servicemix
+in the root dir of this distribution.
+
+When inside the console, just run the following commands to install the
+example:
+
+  features addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features
+  features addUrl mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+  features install examples-cxf-nmr
+
+If you have all the bundles available in your local repo, the installation
+of the example will be very fast, otherwise it may take some time to
+download everything needed.
+
+Testing the example
+-------------------
+
+When the feature is installed, output for publishing the cxf endpoint
+is displayed to the console:
+
+Jun 16, 2008 12:29:29 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
+INFO: Creating Service {http://cxf.examples.servicemix.apache.org/}HelloWorldImplService
from class org.apache.servicemix.examples.cxf.HelloWorld
+Jun 16, 2008 12:29:30 AM org.apache.cxf.configuration.spring.ConfigurerImpl getBeanName
+INFO: Could not determine bean name for instance of class org.apache.servicemix.cxf.transport.nmr.NMRDestination.
+Jun 16, 2008 12:29:30 AM org.apache.cxf.endpoint.ServerImpl initDestination
+INFO: Setting the server's publish address to be nmr:HelloWorld 
+
+How does it work?
+-----------------
+
+The installation leverages ServiceMix Kernel by installing what's called
+'features'. You can see the features definition file using the following
+command inside ServiceMix console:
+
+utils cat mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+The list of available features can be obtained using:
+
+features list
+
+

Propchange: servicemix/smx4/features/trunk/examples/cxf-osgi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Added: servicemix/smx4/features/trunk/examples/cxf-osgi/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-osgi/README.txt?rev=669457&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-osgi/README.txt (added)
+++ servicemix/smx4/features/trunk/examples/cxf-osgi/README.txt Thu Jun 19 04:54:48 2008
@@ -0,0 +1,74 @@
+/*
+ * 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.
+ */
+
+Welcome to the ServiceMix cxf osgi example
+==========================================
+
+This example leverages CXF and Spring-DM to create a web service and expose
+it through the OSGi HTTP Service.
+
+Quick steps to install the sample
+---------------------------------
+
+Launch the ServiceMix Kernel by running
+  bin/servicemix
+in the root dir of this distribution.
+
+When inside the console, just run the following commands to install the
+example:
+
+  features addUrl mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features
+  features addUrl mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+  features install examples-cxf-osgi
+
+If you have all the bundles available in your local repo, the installation
+of the example will be very fast, otherwise it may take some time to
+download everything needed.
+
+Testing the example
+-------------------
+
+When the feature is installed, output for publishing the cxf endpoint
+is displayed to the console.
+
+Now, just open your browser and go to the following url:
+
+http://localhost:8080/cxf/HelloWorld?wsdl
+
+It should display the WSDL of the service (if you use Safari, make sure to
+right click the window and select 'Show Source', else the page will be blank).
+Or you can also test it from ServiceMix console using"
+
+utils cat http://localhost:8080/cxf/HelloWorld?wsdl
+
+You can also open the client.html page in a browser to try sending a request
+to the service.
+
+How does it work?
+-----------------
+
+The installation leverages ServiceMix Kernel by installing what's called
+'features'. You can see the features definition file using the following
+command inside ServiceMix console:
+
+utils cat mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+
+The list of available features can be obtained using:
+
+features list
+
+

Added: servicemix/smx4/features/trunk/examples/cxf-osgi/client.html
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-osgi/client.html?rev=669457&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-osgi/client.html (added)
+++ servicemix/smx4/features/trunk/examples/cxf-osgi/client.html Thu Jun 19 04:54:48 2008
@@ -0,0 +1,136 @@
+<!--
+    
+    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.
+
+-->
+<html>
+<head>
+<title>ServiceMix 4 CXF-OSGi Example</title>
+<script type="text/javascript">
+var urlToOpen = "http://localhost:8080/cxf/HelloWorld"; //default URL to open
+
+function getHTTPObject() {
+  var xmlhttp = false;
+
+  /* Compilation conditionnelle d'IE */
+  /* Check if we are using IE */
+  /*@cc_on
+  @if (@_jscript_version >= 5)
+     try {
+        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
+     } catch (e) {
+        try {
+           xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
+        } catch (E) {
+           xmlhttp = false;
+        }
+     }
+  @else
+     xmlhttp = false;
+  @end @*/
+
+  /* on essaie de créer l'objet si ce n'est pas déjà fait */
+  /* Create the xmlhttp object if it is not yet defined */
+  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
+     try {
+        xmlhttp = new XMLHttpRequest();
+     } catch (e) {
+        xmlhttp = false;
+     }
+  }
+
+  if (xmlhttp) {
+     /* on définit ce qui doit se passer quand la page répondra */
+     /* Define the callback function for the response */
+     xmlhttp.onreadystatechange=function() {
+        if (xmlhttp.readyState == 4) { /* 4 : état "complete" */
+           var response = document.getElementById("response");
+           var responseStatus = "";
+           try {
+             responseStatus = xmlhttp.status + "";
+           } catch (e) {
+             responseStatus = "ERROR WHILE RETRIEVING STATUS; MAYBE UNABLE TO CONNECT.";
+           }
+           response.value = "STATUS: " + responseStatus + "\n" + xmlhttp.responseText;
+        }
+     }
+  }
+  return xmlhttp;
+}
+
+function send() {
+  if ((document.getElementById("urlToOpen").value != urlToOpen) && (document.getElementById("urlToOpen").value
!= "")) {
+    // use user entry if it is not the empty string
+    urlToOpen = document.getElementById("urlToOpen").value;
+  }  
+  var xmlhttp = getHTTPObject();
+  if (!xmlhttp) {
+    alert('cound not create XMLHttpRequest object');
+    return;
+  }
+  var request = document.getElementById("request");
+  var response = document.getElementById("response");
+  try {
+    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead UniversalBrowserWrite");
+  } catch (e) {
+  }
+  try {
+    xmlhttp.open("POST", urlToOpen, true);
+  } catch (e) {
+    alert('error opening');
+  }
+  xmlhttp.send(request.value);
+}
+
+</script>
+</head>
+
+<body>
+
+<h1>ServiceMix 4 CXF-OSGi Example</h1>
+
+<p>Welcome to the CXF-OSGi example for ServiceMix 4</p>
+
+<p>Perform a POST into the HTTP binding. This requires JavaScript.</p> 
+<p>Target: <input type="text" size="50" id="urlToOpen" value=""><script type="text/javascript">document.getElementById("urlToOpen").value
= urlToOpen;</script>.</p>
+  
+<table>
+  <tr>
+    <td>
+  <textarea id="request" style="width:600px;height:400px"><?xml version="1.0" encoding="UTF-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+  <soap:Body>
+    <ns2:sayHi xmlns:ns2="http://cxf.examples.servicemix.apache.org/">
+      <arg0>John Doe</arg0>
+    </ns2:sayHi>
+  </soap:Body>
+</soap:Envelope>
+
+  </textarea>
+    </td>
+    <td>
+  <textarea id="response" style="width:600px;height:400px">
+  </textarea>
+    </td>
+  </tr>
+  <tr>
+    <td colspan=2>
+  <input type="button" value="Send" onClick="send();"/>
+    </td>
+  </tr>
+</table>
+</body>
+</html>

Propchange: servicemix/smx4/features/trunk/examples/itests/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Propchange: servicemix/smx4/features/trunk/management/acegi/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Propchange: servicemix/smx4/features/trunk/management/core/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 runner
 *.iml

Propchange: servicemix/smx4/features/trunk/transaction/bundles/howl/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -5,5 +5,5 @@
 .classpath
 .project
 .settings
-
+bin
 

Propchange: servicemix/smx4/features/trunk/transaction/bundles/jencks/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 *.ipr

Propchange: servicemix/smx4/features/trunk/transaction/transaction/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -6,3 +6,4 @@
 .classpath
 .project
 .settings
+bin

Propchange: servicemix/smx4/features/trunk/war/bundles/jasper/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 target

Propchange: servicemix/smx4/features/trunk/war/deployer/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Jun 19 04:54:48 2008
@@ -1,3 +1,4 @@
+bin
 target
 *.iml
 target



Mime
View raw message