geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r201775 - in /geronimo/trunk: etc/ modules/assembly/ modules/assembly/src/plan/ modules/servicemix-builder/ modules/servicemix-builder/src/ modules/servicemix-builder/src/java/ modules/servicemix-builder/src/java/org/ modules/servicemix-bui...
Date Sun, 26 Jun 2005 09:57:38 GMT
Author: chirino
Date: Sat Jun 25 10:59:41 2005
New Revision: 201775

URL: http://svn.apache.org/viewcvs?rev=201775&view=rev
Log:
Added a servicemix deployer (JSR 208: JBI), see http://servicemix.org


Added:
    geronimo/trunk/modules/servicemix/
    geronimo/trunk/modules/servicemix-builder/
    geronimo/trunk/modules/servicemix-builder/LICENSE.txt
    geronimo/trunk/modules/servicemix-builder/NOTICE.txt
    geronimo/trunk/modules/servicemix-builder/maven.xml
    geronimo/trunk/modules/servicemix-builder/project.properties
    geronimo/trunk/modules/servicemix-builder/project.xml
    geronimo/trunk/modules/servicemix-builder/src/
    geronimo/trunk/modules/servicemix-builder/src/java/
    geronimo/trunk/modules/servicemix-builder/src/java/org/
    geronimo/trunk/modules/servicemix-builder/src/java/org/apache/
    geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/
    geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/
    geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/deployment/
    geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/deployment/ServiceMixConfigBuilder.java
    geronimo/trunk/modules/servicemix-builder/src/test/
    geronimo/trunk/modules/servicemix-builder/src/test-resources/
    geronimo/trunk/modules/servicemix/LICENSE.txt
    geronimo/trunk/modules/servicemix/NOTICE.txt
    geronimo/trunk/modules/servicemix/maven.xml
    geronimo/trunk/modules/servicemix/project.properties
    geronimo/trunk/modules/servicemix/project.xml
    geronimo/trunk/modules/servicemix/src/
    geronimo/trunk/modules/servicemix/src/java/
    geronimo/trunk/modules/servicemix/src/java/org/
    geronimo/trunk/modules/servicemix/src/java/org/apache/
    geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/
    geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/servicemix/
    geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/servicemix/ServiceMixDeployment.java
    geronimo/trunk/modules/servicemix/src/test/
    geronimo/trunk/modules/servicemix/src/test-resources/
Modified:
    geronimo/trunk/etc/project.properties
    geronimo/trunk/modules/assembly/maven.xml
    geronimo/trunk/modules/assembly/project.xml
    geronimo/trunk/modules/assembly/src/plan/j2ee-deployer-plan.xml
    geronimo/trunk/modules/assembly/src/plan/j2ee-runtime-deployer-plan.xml
    geronimo/trunk/modules/assembly/src/plan/j2ee-server-plan.xml

Modified: geronimo/trunk/etc/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/trunk/etc/project.properties?rev=201775&r1=201774&r2=201775&view=diff
==============================================================================
--- geronimo/trunk/etc/project.properties (original)
+++ geronimo/trunk/etc/project.properties Sat Jun 25 10:59:41 2005
@@ -172,6 +172,8 @@
 xmlpull_version=1.1.3.4d_b4_min
 xpp3_version=1.1.3.3
 xstream_version=1.0.2
+servicemix_version=1.0-SNAPSHOT
+servicemix_spring_version=1.2.2-dev-2
 
 #####################################################
 # Site Colors

Modified: geronimo/trunk/modules/assembly/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/maven.xml?rev=201775&r1=201774&r2=201775&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/maven.xml (original)
+++ geronimo/trunk/modules/assembly/maven.xml Sat Jun 25 10:59:41 2005
@@ -434,6 +434,29 @@
                 <ant:arg value="${maven.repo.local}/activemq/rars/activemq-ra-${activemq_version}.rar"/>
             </ant:java>
 
+            <!-- build the servicemix runtime configuration -->
+            <ant:echo>Building servicemix runtime configuration</ant:echo>
+            <ant:java fork="true" jar="${distDir}/bin/deployer.jar" failonerror="true">
+                <ant:jvmarg value="-ea"/>
+                <ant:arg value="--user"/>
+                <ant:arg value="system"/>
+                <ant:arg value="--password"/>
+                <ant:arg value="manager"/>
+                <ant:arg value="distribute"/>
+                <ant:arg value="target/plan/servicemix-runtime-plan.xml"/>
+            </ant:java>
+            <!-- build the servicemix deployer configuration -->
+            <ant:echo>Building servicemix deployer configuration</ant:echo>
+            <ant:java fork="true" jar="${distDir}/bin/deployer.jar" failonerror="true">
+                <ant:jvmarg value="-ea"/>
+                <ant:arg value="--user"/>
+                <ant:arg value="system"/>
+                <ant:arg value="--password"/>
+                <ant:arg value="manager"/>
+                <ant:arg value="distribute"/>
+                <ant:arg value="target/plan/servicemix-deployer-plan.xml"/>
+            </ant:java>
+
             <!-- build the spring runtime configuration -->
             <ant:echo>Building spring runtime configuration</ant:echo>
             <ant:java fork="true" jar="${distDir}/bin/deployer.jar" failonerror="true">

Modified: geronimo/trunk/modules/assembly/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/project.xml?rev=201775&r1=201774&r2=201775&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/project.xml (original)
+++ geronimo/trunk/modules/assembly/project.xml Sat Jun 25 10:59:41 2005
@@ -1267,6 +1267,43 @@
             </properties>
         </dependency>
 
+        <!-- JBI ServiceMix -->
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-servicemix</artifactId>
+            <version>${pom.currentVersion}</version>
+            <properties>
+                <repository>true</repository>
+            </properties>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-servicemix-builder</artifactId>
+            <version>${pom.currentVersion}</version>
+            <properties>
+                <repository>true</repository>
+            </properties>
+        </dependency>
+
+        <dependency>
+            <groupId>servicemix</groupId>
+            <artifactId>servicemix</artifactId>
+            <version>${servicemix_version}</version>
+            <properties>
+                <repository>true</repository>
+            </properties>
+        </dependency>
+
+        <dependency>
+            <groupId>servicemix</groupId>
+            <artifactId>spring</artifactId>
+            <version>${servicemix_spring_version}</version>
+            <properties>
+                <repository>true</repository>
+            </properties>
+        </dependency>
+
     </dependencies>
 
 </project>

Modified: geronimo/trunk/modules/assembly/src/plan/j2ee-deployer-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/src/plan/j2ee-deployer-plan.xml?rev=201775&r1=201774&r2=201775&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/src/plan/j2ee-deployer-plan.xml (original)
+++ geronimo/trunk/modules/assembly/src/plan/j2ee-deployer-plan.xml Sat Jun 25 10:59:41 2005
@@ -132,6 +132,14 @@
         <uri>geronimo/jars/geronimo-interop-${geronimo_version}.jar</uri>
     </dependency>
 
+    <dependency>
+        <uri>geronimo/jars/geronimo-servicemix-${geronimo_version}.jar</uri>
+    </dependency>
+    <dependency>
+        <uri>geronimo/jars/geronimo-servicemix-builder-${geronimo_version}.jar</uri>
+    </dependency>
+
+
     <!--
    - Uncomment this to deploy webapps to Apache Tomcat
    -
@@ -314,5 +322,16 @@
 <!--        </attribute>-->
 <!--        <reference name="Compiler"><gbean-name>openejb.CORBA:type=Compiler,vendor=Ant</gbean-name></reference>-->
 <!--    </gbean>-->
+
+
+    <gbean name="JBIBuilder" class="org.apache.geronimo.servicemix.deployment.ServiceMixConfigBuilder">
+        <attribute name="defaultParentId">org/apache/geronimo/Server</attribute>
+        <attribute name="deploymentDependencies">
+            servicemix/jars/spring-${servicemix_spring_version}.jar,
+            servicemix/jars/servicemix-${servicemix_version}.jar
+        </attribute>
+        <reference name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
+    </gbean>
+
 
 </configuration>

Modified: geronimo/trunk/modules/assembly/src/plan/j2ee-runtime-deployer-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/src/plan/j2ee-runtime-deployer-plan.xml?rev=201775&r1=201774&r2=201775&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/src/plan/j2ee-runtime-deployer-plan.xml (original)
+++ geronimo/trunk/modules/assembly/src/plan/j2ee-runtime-deployer-plan.xml Sat Jun 25 10:59:41 2005
@@ -71,6 +71,10 @@
         <uri>geronimo/jars/geronimo-interop-${geronimo_version}.jar</uri>
     </dependency>
 
+    <dependency>
+        <uri>geronimo/jars/geronimo-servicemix-builder-${geronimo_version}.jar</uri>
+    </dependency>
+
     <!--
     - Uncomment this section to deploy webapps to Apache Tomcat
     -
@@ -249,5 +253,14 @@
     <gbean name="WebServiceBuilder" class="org.apache.geronimo.axis.builder.AxisBuilder">
     </gbean>
 
+
+    <gbean name="JBIBuilder" class="org.apache.geronimo.servicemix.deployment.ServiceMixConfigBuilder">
+        <attribute name="defaultParentId">org/apache/geronimo/Server</attribute>
+        <attribute name="deploymentDependencies">
+            servicemix/jars/spring-${servicemix_spring_version}.jar,
+            servicemix/jars/servicemix-${servicemix_version}.jar
+        </attribute>
+        <reference name="Repository"><gbean-name>*:name=Repository,*</gbean-name></reference>
+    </gbean>
 
 </configuration>

Modified: geronimo/trunk/modules/assembly/src/plan/j2ee-server-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/src/plan/j2ee-server-plan.xml?rev=201775&r1=201774&r2=201775&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/src/plan/j2ee-server-plan.xml (original)
+++ geronimo/trunk/modules/assembly/src/plan/j2ee-server-plan.xml Sat Jun 25 10:59:41 2005
@@ -119,6 +119,10 @@
          <uri>geronimo/jars/geronimo-webservices-${geronimo_version}.jar</uri>
     </dependency>
 
+    <!-- for JBI container -->
+    <dependency>
+        <uri>geronimo/jars/geronimo-servicemix-${geronimo_version}.jar</uri>
+    </dependency>
 
     <!-- Default security realm using properties files -->
     <gbean name="properties-login"

Added: geronimo/trunk/modules/servicemix-builder/LICENSE.txt
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix-builder/LICENSE.txt?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix-builder/LICENSE.txt (added)
+++ geronimo/trunk/modules/servicemix-builder/LICENSE.txt Sat Jun 25 10:59:41 2005
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
+

Added: geronimo/trunk/modules/servicemix-builder/NOTICE.txt
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix-builder/NOTICE.txt?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix-builder/NOTICE.txt (added)
+++ geronimo/trunk/modules/servicemix-builder/NOTICE.txt Sat Jun 25 10:59:41 2005
@@ -0,0 +1,3 @@
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+

Added: geronimo/trunk/modules/servicemix-builder/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix-builder/maven.xml?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix-builder/maven.xml (added)
+++ geronimo/trunk/modules/servicemix-builder/maven.xml Sat Jun 25 10:59:41 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed 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.
+-->
+  
+
+<!-- $Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $ -->
+
+<project default="default"
+    xmlns:xmlbeans="geronimo:xmlbeans">
+</project>

Added: geronimo/trunk/modules/servicemix-builder/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix-builder/project.properties?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix-builder/project.properties (added)
+++ geronimo/trunk/modules/servicemix-builder/project.properties Sat Jun 25 10:59:41 2005
@@ -0,0 +1,7 @@
+##
+## $Rev: 56981 $ $Date: 2004-11-08 20:01:27 -0500 (Mon, 08 Nov 2004) $
+##
+
+# Include the generated xmlbean classes in the eclipse classpath
+#maven.eclipse.classpath.include=target/xmlbeans
+#maven.idea.generated.source=xmlbeans

Added: geronimo/trunk/modules/servicemix-builder/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix-builder/project.xml?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix-builder/project.xml (added)
+++ geronimo/trunk/modules/servicemix-builder/project.xml Sat Jun 25 10:59:41 2005
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed 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.
+-->
+
+<!-- $Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $ -->
+
+<project>
+    <pomVersion>3</pomVersion>
+    <extend>../../etc/project.xml</extend>
+
+    <!-- ===================== -->
+    <!-- Module Identification -->
+    <!-- ===================== -->
+
+    <name>Geronimo :: ServiceMix :: Builder</name>
+    <id>geronimo-servicemix-builder</id>
+    <shortDescription>Geronimo ServiceMix Builder</shortDescription>
+    <description>Geronimo ServiceMix Builder</description>
+    <url>http://geronimo.apache.org/modules/deployment/</url>
+    <siteDirectory>/www/geronimo.apache.org/modules/deployment</siteDirectory>
+    <distributionDirectory>/www/incubator.apache.org/projects/geronimo/builds/deployment</distributionDirectory>
+
+    <package>org.apache.geronimo.servicemix.deployment</package>
+
+    <!-- ============ -->
+    <!-- Dependencies -->
+    <!-- ============ -->
+
+    <dependencies>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-kernel</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-common</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-deployment</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-j2ee</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-system</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-j2ee-schema</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-servicemix</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j</artifactId>
+            <version>${mx4j_version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons_logging_version}</version>
+            <url>http://jakarta.apache.org/commons/logging/</url>
+        </dependency>
+
+        <dependency>
+            <groupId>xml-resolver</groupId>
+            <artifactId>xml-resolver</artifactId>
+            <version>${xml_resolver_version}</version>
+            <url>http://xml.apache.org/commons</url>
+        </dependency>
+
+        <dependency>
+            <groupId>servicemix</groupId>
+            <artifactId>servicemix</artifactId>
+            <version>${servicemix_version}</version>
+        </dependency>
+        <dependency>
+          <groupId>servicemix</groupId>
+          <artifactId>spring</artifactId>
+          <version>${servicemix_spring_version}</version>
+        </dependency>
+
+    </dependencies>
+
+
+    <!-- =================== -->
+    <!-- Build Specification -->
+    <!-- =================== -->
+
+    <build>
+        <unitTest>
+            <includes>
+                <include>**/*Test.java</include>
+            </includes>
+            <excludes>
+                <exclude>**/Abstract*.java</exclude>
+            </excludes>
+            <resources>
+                <resource>
+                    <directory>${basedir}/src/schema</directory>
+                    <includes>
+                        <include>*.xsd</include>
+                    </includes>
+                </resource>
+                <resource>
+                    <directory>${basedir}/src/test-resources</directory>
+                </resource>
+            </resources>
+        </unitTest>
+    </build>
+</project>

Added: geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/deployment/ServiceMixConfigBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/deployment/ServiceMixConfigBuilder.java?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/deployment/ServiceMixConfigBuilder.java (added)
+++ geronimo/trunk/modules/servicemix-builder/src/java/org/apache/geronimo/servicemix/deployment/ServiceMixConfigBuilder.java Sat Jun 25 10:59:41 2005
@@ -0,0 +1,183 @@
+/**
+ *
+ * Copyright 2003-2005 The Apache Software Foundation
+ *
+ *  Licensed 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.geronimo.servicemix.deployment;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Enumeration;
+import java.util.Properties;
+import java.util.jar.JarFile;
+import java.util.zip.ZipEntry;
+
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.geronimo.common.DeploymentException;
+import org.apache.geronimo.deployment.ConfigurationBuilder;
+import org.apache.geronimo.deployment.DeploymentContext;
+import org.apache.geronimo.deployment.util.DeploymentUtil;
+import org.apache.geronimo.gbean.GBeanData;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
+import org.apache.geronimo.kernel.Kernel;
+import org.apache.geronimo.kernel.config.ConfigurationData;
+import org.apache.geronimo.kernel.config.ConfigurationModuleType;
+import org.apache.geronimo.kernel.repository.Repository;
+import org.apache.geronimo.servicemix.ServiceMixDeployment;
+
+/**
+ * @version $Rev: 169154 $ $Date: 2005-05-08 15:35:23 -0400 (Sun, 08 May 2005) $
+ */
+public class ServiceMixConfigBuilder implements ConfigurationBuilder {
+    private static final Log log = LogFactory.getLog(ServiceMixConfigBuilder.class);
+    
+    private final URI defaultParentId;
+    private final Repository repository;
+    private final Kernel kernel;
+    private String deploymentDependencies;
+
+    public static final GBeanInfo GBEAN_INFO;
+    static {
+        GBeanInfoBuilder infoFactory = new GBeanInfoBuilder(ServiceMixConfigBuilder.class, NameFactory.CONFIG_BUILDER);
+        infoFactory.addInterface(ConfigurationBuilder.class);
+        infoFactory.addAttribute("defaultParentId", URI.class, true);
+        infoFactory.addAttribute("deploymentDependencies", String.class, true);
+        infoFactory.addReference("Repository", Repository.class, NameFactory.GERONIMO_SERVICE);
+        infoFactory.addAttribute("kernel", Kernel.class, false);
+        infoFactory.setConstructor(new String[]{"defaultParentId", "Repository", "kernel"});
+        GBEAN_INFO = infoFactory.getBeanInfo();
+    }
+
+    public static GBeanInfo getGBeanInfo() {
+        return GBEAN_INFO;
+    }
+
+    public ServiceMixConfigBuilder(URI defaultParentId, Repository repository) {
+        this(defaultParentId, repository, null);
+    }
+
+    public ServiceMixConfigBuilder(URI defaultParentId, Repository repository, Kernel kernel) {
+        this.defaultParentId = defaultParentId;
+        this.repository = repository;
+        this.kernel = kernel;
+    }
+
+    public Object getDeploymentPlan(File planFile, JarFile module) throws DeploymentException {
+        log.debug("Checking for ServiceMix deployment.");
+        if (module == null) {
+            return null;
+        }
+        try {
+            DeploymentUtil.readAll(DeploymentUtil.createJarURL(module, "META-INF/jbi.xml"));
+        } catch (Exception e) {
+            log.debug("Not a ServiceMix deployment: no jbi.xml found.");
+            //no jbi.xml, not for us
+            return null;
+        }   
+        
+        try {
+            Properties properties = new Properties();
+            InputStream is = DeploymentUtil.createJarURL(module, "META-INF/jbi-geronimo.properties").openStream();
+            try {
+                properties.load(is);
+            } finally {
+                is.close();
+            }
+            return properties;
+        } catch (Exception e) {
+            throw new DeploymentException("Could not load META-INF/jbi-geronimo.properties: "+e,e);
+        }   
+    }
+
+    public ConfigurationData buildConfiguration(Object plan, JarFile module, File outfile) throws IOException, DeploymentException {
+        log.debug("Installing ServiceMix deployment.");
+        Properties properties = (Properties)plan;        
+
+        URI parentID = defaultParentId;
+        URI configID;
+        try {
+            configID = new URI(properties.getProperty("configID"));
+        } catch (URISyntaxException e1) {
+            throw new DeploymentException("Invalid configuration URI", e1);
+        }
+
+        DeploymentContext context = null;
+        try {
+            context = new DeploymentContext(outfile, configID, ConfigurationModuleType.SERVICE, parentID, null, null, kernel);
+        } catch (MalformedObjectNameException e) {
+            throw new DeploymentException(e);
+        }
+
+        // Copy over all files.
+        for (Enumeration e = module.entries(); e.hasMoreElements();) {
+            ZipEntry entry = (ZipEntry) e.nextElement();
+            context.addFile(URI.create(entry.getName()), module, entry);
+        }
+
+        // Create the JBI deployment managed object
+        try {
+            Properties props = new Properties();
+            props.put("jbiType", "Deployment");
+            props.put("name", configID.toString());
+            ObjectName name = ObjectName.getInstance(context.getDomain(), props);
+            GBeanData gbeanData = new GBeanData(name, ServiceMixDeployment.GBEAN_INFO);
+
+            context.addGBean(gbeanData);
+        } catch (MalformedObjectNameException e) {
+            throw new DeploymentException("Invalid gbean name: "+e,e);
+        }
+        
+        if( deploymentDependencies!=null ) {
+            String[] strings = deploymentDependencies.split("\\,");
+            for (int i = 0; i < strings.length; i++) {
+                strings[i] = strings[i].trim();
+                if( strings[i].length()>0 ) {
+                    try {
+                    context.addDependency(new URI(strings[i]));
+                    } catch (URISyntaxException e) {
+                        throw new DeploymentException("Invalid dependency URI: "+strings[i],e);
+                    }
+                }
+            }
+        }
+        
+        context.close();        
+        ConfigurationData configurationData = context.getConfigurationData();
+        try {
+            configurationData.addClassPathLocation(new URI("."));
+        } catch (URISyntaxException e) {
+            throw new DeploymentException("Could not set classpath: "+e,e);
+        }
+        return configurationData;
+    }
+
+    public String getDeploymentDependencies() {
+        return deploymentDependencies;
+    }
+
+    public void setDeploymentDependencies(String deploymentDependencies) {
+        this.deploymentDependencies = deploymentDependencies;
+    }
+
+}

Added: geronimo/trunk/modules/servicemix/LICENSE.txt
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix/LICENSE.txt?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix/LICENSE.txt (added)
+++ geronimo/trunk/modules/servicemix/LICENSE.txt Sat Jun 25 10:59:41 2005
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
+

Added: geronimo/trunk/modules/servicemix/NOTICE.txt
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix/NOTICE.txt?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix/NOTICE.txt (added)
+++ geronimo/trunk/modules/servicemix/NOTICE.txt Sat Jun 25 10:59:41 2005
@@ -0,0 +1,3 @@
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+

Added: geronimo/trunk/modules/servicemix/maven.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix/maven.xml?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix/maven.xml (added)
+++ geronimo/trunk/modules/servicemix/maven.xml Sat Jun 25 10:59:41 2005
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed 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.
+-->
+  
+
+<!-- $Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $ -->
+
+<project default="default"
+    xmlns:xmlbeans="geronimo:xmlbeans">
+</project>

Added: geronimo/trunk/modules/servicemix/project.properties
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix/project.properties?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix/project.properties (added)
+++ geronimo/trunk/modules/servicemix/project.properties Sat Jun 25 10:59:41 2005
@@ -0,0 +1,7 @@
+##
+## $Rev: 56981 $ $Date: 2004-11-08 20:01:27 -0500 (Mon, 08 Nov 2004) $
+##
+
+# Include the generated xmlbean classes in the eclipse classpath
+#maven.eclipse.classpath.include=target/xmlbeans
+#maven.idea.generated.source=xmlbeans

Added: geronimo/trunk/modules/servicemix/project.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix/project.xml?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix/project.xml (added)
+++ geronimo/trunk/modules/servicemix/project.xml Sat Jun 25 10:59:41 2005
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+
+    Copyright 2004 The Apache Software Foundation
+
+    Licensed 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.
+-->
+
+<!-- $Rev: 46019 $ $Date: 2004-09-14 05:56:06 -0400 (Tue, 14 Sep 2004) $ -->
+
+<project>
+    <pomVersion>3</pomVersion>
+    <extend>../../etc/project.xml</extend>
+
+    <!-- ===================== -->
+    <!-- Module Identification -->
+    <!-- ===================== -->
+
+    <name>Geronimo :: ServiceMix</name>
+    <id>geronimo-servicemix</id>
+    <shortDescription>Geronimo ServiceMix</shortDescription>
+    <description>Geronimo ServiceMix</description>
+    <url>http://geronimo.apache.org/modules/deployment/</url>
+    <siteDirectory>/www/geronimo.apache.org/modules/deployment</siteDirectory>
+    <distributionDirectory>/www/incubator.apache.org/projects/geronimo/builds/deployment</distributionDirectory>
+
+    <package>org.apache.geronimo.servicemix</package>
+
+    <!-- ============ -->
+    <!-- Dependencies -->
+    <!-- ============ -->
+
+    <dependencies>
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-kernel</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-common</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-system</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j</artifactId>
+            <version>${mx4j_version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>${commons_logging_version}</version>
+            <url>http://jakarta.apache.org/commons/logging/</url>
+        </dependency>
+        <dependency>
+            <groupId>xml-resolver</groupId>
+            <artifactId>xml-resolver</artifactId>
+            <version>${xml_resolver_version}</version>
+            <url>http://xml.apache.org/commons</url>
+        </dependency>
+
+        <dependency>
+            <groupId>servicemix</groupId>
+            <artifactId>servicemix</artifactId>
+            <version>${servicemix_version}</version>
+        </dependency>
+        <dependency>
+          <groupId>servicemix</groupId>
+          <artifactId>spring</artifactId>
+          <version>${servicemix_spring_version}</version>
+        </dependency>
+
+    </dependencies>
+
+
+    <!-- =================== -->
+    <!-- Build Specification -->
+    <!-- =================== -->
+
+    <build>
+        <unitTest>
+            <includes>
+                <include>**/*Test.java</include>
+            </includes>
+            <excludes>
+                <exclude>**/Abstract*.java</exclude>
+            </excludes>
+            <resources>
+                <resource>
+                    <directory>${basedir}/src/schema</directory>
+                    <includes>
+                        <include>*.xsd</include>
+                    </includes>
+                </resource>
+                <resource>
+                    <directory>${basedir}/src/test-resources</directory>
+                </resource>
+            </resources>
+        </unitTest>
+    </build>
+</project>

Added: geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/servicemix/ServiceMixDeployment.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/servicemix/ServiceMixDeployment.java?rev=201775&view=auto
==============================================================================
--- geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/servicemix/ServiceMixDeployment.java (added)
+++ geronimo/trunk/modules/servicemix/src/java/org/apache/geronimo/servicemix/ServiceMixDeployment.java Sat Jun 25 10:59:41 2005
@@ -0,0 +1,64 @@
+package org.apache.geronimo.servicemix;
+
+import java.lang.reflect.Constructor;
+import java.lang.reflect.Method;
+import java.net.URL;
+
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.gbean.GBeanLifecycle;
+
+public class ServiceMixDeployment implements GBeanLifecycle {
+
+    public static final GBeanInfo GBEAN_INFO;
+    static {
+        GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder(ServiceMixDeployment.class);
+        infoBuilder.addAttribute("classLoader", ClassLoader.class, false);
+        infoBuilder.addAttribute("configurationBaseUrl", URL.class, true);
+        infoBuilder.setConstructor(new String[] { "classLoader", "configurationBaseUrl" });
+        GBEAN_INFO = infoBuilder.getBeanInfo();
+    }
+
+    public static GBeanInfo getGBeanInfo() {
+        return GBEAN_INFO;
+    }
+
+    private final ClassLoader classLoader;
+    private final URL configurationBaseUrl;
+    private Object context;
+
+    public ServiceMixDeployment(ClassLoader classLoader, URL configurationBaseUrl) {
+        this.classLoader = classLoader;
+        this.configurationBaseUrl=configurationBaseUrl;
+    }
+
+    synchronized public void doStart() throws Exception {
+        if (context != null)
+            throw new IllegalStateException("Already started.");
+        System.out.println("starting..");
+        Thread.currentThread().setContextClassLoader(classLoader);
+        try {
+            // We load dynamically so that servicemix and spring do not have to be in the system classpath.
+            Class clazz = classLoader.loadClass("org.springframework.context.support.ClassPathXmlApplicationContext");
+            Constructor constructor = clazz.getConstructor(new Class[]{String.class});
+            context = constructor.newInstance(new Object[]{"META-INF/jbi.xml"});
+            Method method = clazz.getMethod("getBean", new Class[]{String.class});
+            method.invoke(context, new String[]{"jbi"});
+        } finally {
+            Thread.currentThread().setContextClassLoader(null);
+        }
+    }
+
+    synchronized public void doStop() throws Exception {
+        if (context == null)
+            throw new IllegalStateException("Already stopped.");
+
+        Method method = context.getClass().getMethod("close", null);
+        method.invoke(context, null);
+        context = null;
+    }
+
+    public void doFail() {
+    }
+
+}



Mime
View raw message