You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by va...@apache.org on 2007/06/13 13:14:02 UTC

svn commit: r546825 - in /geronimo/sandbox/tuscany-integration: ./ geronimo-tuscany/ geronimo-tuscany/configs/ geronimo-tuscany/configs/src/ geronimo-tuscany/configs/src/main/ geronimo-tuscany/configs/src/main/java/ geronimo-tuscany/configs/src/main/re...

Author: vamsic007
Date: Wed Jun 13 04:14:00 2007
New Revision: 546825

URL: http://svn.apache.org/viewvc?view=rev&rev=546825
Log:
Geronimo Tuscany integration
  o A plugin for Geronimo that will allow deployment of Standalone tuscany modules
  o A sample standalone tuscany module and a web application using the deployed service

Added:
    geronimo/sandbox/tuscany-integration/
    geronimo/sandbox/tuscany-integration/README.TXT
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/java/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/test/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/resources/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/resources/META-INF/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml   (with props)
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/test/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/test/java/
    geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml   (with props)
    geronimo/sandbox/tuscany-integration/samples/
    geronimo/sandbox/tuscany-integration/samples/calculator.jar   (with props)
    geronimo/sandbox/tuscany-integration/samples/calculatorClient.war   (with props)

Added: geronimo/sandbox/tuscany-integration/README.TXT
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/README.TXT?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/README.TXT (added)
+++ geronimo/sandbox/tuscany-integration/README.TXT Wed Jun 13 04:14:00 2007
@@ -0,0 +1,7 @@
+1. Checkout the source to a directory of your choice.  Call it <g_t_dir>
+2. Change directory to <g_t_dir>
+3. Build using "mvn clean install"
+4. Deploy the plugin using "deploy.bat install-plugin <g_t_dir>\configs\target\tuscany-plugin-1.0.car"
+5. Deploy <g_t_dir>\samples\standalone.jar
+6. Deploy <g_t_dir>\samples\calculatorClient.war
+7. Access http://localhost:8080/calculatorClient/
\ No newline at end of file

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml Wed Jun 13 04:14:00 2007
@@ -0,0 +1,74 @@
+<project>
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>geronimo-plugins</groupId>
+        <artifactId>tuscany</artifactId>
+        <version>1.0</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.geronimo.configs</groupId>    
+    <artifactId>tuscany-plugin</artifactId>
+    <version>1.0</version>
+    <packaging>car</packaging>
+    <name>Geronimo :: Tuscany :: Plugins</name>
+    <dependencies>
+     
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-gbean-deployer</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-j2ee-server</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>geronimo</groupId>
+            <artifactId>geronimo-j2ee-deployer</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>car</type>
+            <scope>provided</scope>
+        </dependency>
+
+    </dependencies>
+    <build>
+
+        <plugins>                      
+            <plugin>
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>car-maven-plugin</artifactId>
+                <extensions>true</extensions> 
+                <configuration>
+                    <deploymentConfigs>
+                        <deploymentConfig>org.apache.geronimo.configs/geronimo-gbean-deployer/2.0-SNAPSHOT/car</deploymentConfig>
+                        <deploymentConfig>org.apache.geronimo.configs/j2ee-deployer/2.0-SNAPSHOT/car</deploymentConfig>
+                    </deploymentConfigs>
+                    <deployerName>org.apache.geronimo.configs/geronimo-gbean-deployer/2.0-SNAPSHOT/car?j2eeType=Deployer,name=Deployer</deployerName>
+                    <planFileName>plan.xml</planFileName>
+                    <module>
+                        <groupId>org.apache.geronimo.modules</groupId>
+                        <artifactId>geronimo-tuscany</artifactId>
+                        <version>1.0</version>
+                        <type>jar</type>
+                    </module>
+                </configuration>
+            </plugin>
+        </plugins>
+        
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+    </build>
+  
+</project>
+

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml Wed Jun 13 04:14:00 2007
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<geronimo-plugin xmlns="http://geronimo.apache.org/xml/ns/plugins-1.1">
+    <name>Geronimo Tuscany Deployer</name>
+    <module-id>${pom.groupId}/${pom.artifactId}/${version}/car</module-id>
+    <category>Integration</category>
+    <description>
+        The deployer for standalone Tuscany modules. Deploys composites and binds the SCADomain in JNDI.
+    </description>
+    <url>http://geronimo.apache.org/</url>
+    <author>The Apache Geronimo development community</author>
+    <license osi-approved="true">BSD -- Apache Software License (ASL) 2.0</license>
+    <geronimo-version>2.0-SNAPSHOT</geronimo-version>
+    <prerequisite>
+        <id>org.apache.geronimo.configs/rmi-naming//car</id>        
+        <description>
+            This deployer will work for both jetty and tomcat binaries
+        </description>
+    </prerequisite>
+    <dependency>org.apache.geronimo.configs/rmi-naming//car</dependency>
+    <dependency>org.apache.tuscany/commonj-api//jar</dependency>
+    <dependency>org.apache.tuscany/sca-api//jar</dependency>
+    <dependency>stax/stax-api//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-assembly//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-assembly-xml//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-contribution//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-contribution-impl//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-core//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-core-databinding//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-core-spi//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-databinding//jar</dependency> 
+    <dependency>org.apache.tuscany.sca/tuscany-host-embedded//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-host-http//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-host-webapp//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-implementation-java//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-implementation-java-runtime//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-implementation-java-xml//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-interface//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-interface-java//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-interface-java-runtime//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-interface-java-xml//jar</dependency>
+    <dependency>org.apache.tuscany.sca/tuscany-interface-wsdl//jar</dependency>       
+    <dependency>org.apache.tuscany.sca/tuscany-interface-wsdl-runtime//jar</dependency>    
+    <dependency>org.apache.tuscany.sca/tuscany-interface-wsdl-xml//jar</dependency>   
+    <dependency>org.apache.tuscany.sca/tuscany-policy//jar</dependency>     
+    <dependency>wsdl4j/wsdl4j//jar</dependency>
+    <dependency>org.codehaus.woodstox/wstx-asl//jar</dependency>
+    <dependency>org.apache.ws.commons.schema/XmlSchema//jar</dependency>
+    <dependency>org.eclipse.emf/common//jar</dependency>
+    <dependency>org.eclipse.emf/ecore//jar</dependency>
+    <dependency>org.eclipse.emf/ecore-change//jar</dependency>
+    <dependency>org.eclipse.emf/ecore-xmi//jar</dependency>
+    <dependency>log4j/log4j//jar</dependency>
+    <dependency>commonj/sdo-api-r2.1/1.0-incubating-SNAPSHOT/jar</dependency>
+    <dependency>org.apache.tuscany.das/tuscany-das-rdb/1.0-incubating-SNAPSHOT/jar</dependency>
+    <dependency>org.apache.tuscany.sdo/tuscany-sdo-impl/1.0-incubating-SNAPSHOT/jar</dependency>
+    <dependency>org.eclipse.xsd/xsd//jar</dependency>                             
+    <dependency>org.apache.geronimo.configs/geronimo-gbean-deployer//jar</dependency>    
+    <source-repository>http://people.apache.org/repo/m2-snapshot-repository/</source-repository>          
+    <source-repository>http://mirrors.ibiblio.org/pub/mirrors/maven2/</source-repository>
+    <source-repository>http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/</source-repository>
+    <source-repository>http://repository.codehaus.org/</source-repository>
+</geronimo-plugin>

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/main/resources/META-INF/geronimo-plugin.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml Wed Jun 13 04:14:00 2007
@@ -0,0 +1,301 @@
+<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+  <environment>
+    <moduleId>
+      <groupId>org.apache.geronimo.configs</groupId>
+      <artifactId>tuscany-plugin</artifactId>
+      <version>1.0</version>
+      <type>car</type>
+    </moduleId>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.geronimo.configs</groupId>
+        <artifactId>rmi-naming</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <type>car</type>
+      </dependency>     
+      <dependency>
+        <groupId>org.apache.tuscany</groupId>
+        <artifactId>commonj-api</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>sca-api</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>stax</groupId>
+        <artifactId>stax-api</artifactId>
+        <version>1.0.1</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-assembly</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-assembly-xml</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-contribution</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-contribution-impl</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-core</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-core-databinding</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-core-spi</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-databinding</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-host-embedded</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-host-http</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-host-webapp</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-implementation-java</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-implementation-java-runtime</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-implementation-java-xml</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface-java</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface-java-runtime</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface-java-xml</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface-wsdl</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface-wsdl-runtime</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-interface-wsdl-xml</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-policy</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>wsdl4j</groupId>
+        <artifactId>wsdl4j</artifactId>
+        <version>1.6.1</version>
+<!-- unable to find 1.6.2 in any repo -->
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.codehaus.woodstox</groupId>
+        <artifactId>wstx-asl</artifactId>
+        <version>3.2.0</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.ws.commons.schema</groupId>
+        <artifactId>XmlSchema</artifactId>
+        <version>1.3.1</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                               
+      <dependency>
+        <groupId>org.eclipse.emf</groupId>
+        <artifactId>common</artifactId>
+        <version>2.1.0</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>org.eclipse.emf</groupId>
+        <artifactId>ecore</artifactId>
+        <version>2.2.2</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>org.eclipse.emf</groupId>
+        <artifactId>ecore-change</artifactId>        
+	<version>2.2.2</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>org.eclipse.emf</groupId>
+        <artifactId>ecore-xmi</artifactId>        
+	<version>2.2.2</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>log4j</groupId>
+        <artifactId>log4j</artifactId>
+     	  <version>1.2.14</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>commonj</groupId>
+        <artifactId>sdo-api-r2.1</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>        
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>org.apache.tuscany.das</groupId>
+        <artifactId>tuscany-das-rdb</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>org.apache.tuscany.sdo</groupId>
+        <artifactId>tuscany-sdo-impl</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>
+        <type>jar</type>
+        <import>classes</import>
+      </dependency>                         
+      <dependency>
+        <groupId>org.eclipse.xsd</groupId>
+        <artifactId>xsd</artifactId>
+        <version>2.1.1</version>
+        <type>jar</type>
+        <import>classes</import>
+       </dependency>       
+          <dependency>
+            <groupId>org.apache.geronimo.configs</groupId>
+            <artifactId>geronimo-gbean-deployer</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <type>car</type>
+          </dependency>      
+    </dependencies>
+    <hidden-classes/>
+    <non-overridable-classes/>    
+  </environment>
+      <gbean name="TuscanyBuilder" class="org.apache.geronimo.tuscany.TuscanyBuilder">
+          <reference name="Repository"/>          
+          <attribute name="serverInfoQuery">?name=ServerInfo</attribute>
+          <xml-attribute name="defaultEnvironment">
+              <environment>
+                  <dependencies>
+                      <dependency>
+                          <groupId>org.apache.geronimo.configs</groupId>
+                          <artifactId>tuscany-plugin</artifactId>
+                          <type>car</type>
+                      </dependency>
+                  </dependencies>
+              </environment>
+          </xml-attribute>
+      </gbean>
+</module>
\ No newline at end of file

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/configs/src/plan/plan.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml Wed Jun 13 04:14:00 2007
@@ -0,0 +1,170 @@
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>geronimo-plugins</groupId>
+        <artifactId>tuscany</artifactId>
+        <version>1.0</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <groupId>org.apache.geronimo.modules</groupId>
+    <artifactId>geronimo-tuscany</artifactId>
+    <version>1.0</version>
+    <packaging>jar</packaging>
+    <name>Geronimo :: Tuscany :: Modules</name>
+   <dependencies>
+      <dependency>
+        <groupId>stax</groupId>
+        <artifactId>stax-api</artifactId>
+        <version>1.0.1</version>
+      </dependency> 
+      <dependency>
+        <groupId>wsdl4j</groupId>
+        <artifactId>wsdl4j</artifactId>
+        <version>1.6.2</version>
+      </dependency> 
+      <dependency>
+        <groupId>woodstox</groupId>
+        <artifactId>wstx-asl</artifactId>
+        <version>3.2.0</version>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.ws.commons</groupId>
+        <artifactId>XmlSchema</artifactId>
+        <version>1.1</version>
+      </dependency>                               
+      <dependency>
+        <groupId>org.eclipse.emf</groupId>
+        <artifactId>common</artifactId>
+        <version>2.1.0</version>
+      </dependency>                         
+      <dependency>
+        <groupId>org.eclipse.xsd</groupId>
+        <artifactId>xsd</artifactId>        
+        <version>2.1.1</version>            
+      </dependency>
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-host-embedded</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>            
+      </dependency>                    
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>sca-api</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>            
+      </dependency>                    
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-core</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>            
+      </dependency>                    
+      
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-j2ee</artifactId>        
+        <version>2.0-SNAPSHOT</version>            
+      </dependency>                          
+      <dependency>
+        <groupId>xmlbeans</groupId>
+        <artifactId>xbean</artifactId>
+        <version>2.0.0</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-kernel</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-deployment</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-service-builder</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-common</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+    </dependencies>    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>xmlbeans-maven-plugin</artifactId>
+                <version>2.0.1-SNAPSHOT</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>xmlbeans</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <download>true</download>
+                    <sourceSchemas>geronimo-tuscany-0.3.xsd</sourceSchemas>
+                    <schemaDirectory>src/main/schema</schemaDirectory>
+                    <xmlConfigs>
+                        <xmlConfig implementation="java.io.File">src/main/schema/xmlconfig.xml</xmlConfig>
+                    </xmlConfigs>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>groovy-maven-plugin</artifactId>
+                <version>1.0-alpha-2</version>
+                <executions>
+                    <execution>
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                        <configuration>
+                            <classpath>
+                                <element>
+                                    <groupId>org.apache.geronimo.buildsupport</groupId>
+                                    <artifactId>groovy-build-library</artifactId>
+                                    <version>2.0-SNAPSHOT</version>
+                                </element>
+                            </classpath>
+                            <source>
+                                <body>
+                                    org.apache.geronimo.buildsupport.CopyXmlBeansSchemas.execute(this)
+                                </body>
+                            </source>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>            
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin> 
+                     
+
+        </plugins>
+        
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <testSourceDirectory>src/test</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+            </testResource>
+        </testResources>
+    </build>
+   
+</project>
+

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java Wed Jun 13 04:14:00 2007
@@ -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.
+ */
+package org.apache.geronimo.tuscany;
+
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import org.apache.geronimo.gbean.AbstractName;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.gbean.GBeanLifecycle;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
+import org.apache.geronimo.system.serverinfo.ServerInfo;
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime;
+
+
+public class EmbeddedRuntimeGBean implements GBeanLifecycle, SCADomainInterface {
+	
+	private ClassLoader classLoader;
+	
+	
+	private SCADomain scaDomain;
+	private ServerInfo serverInfo;
+	private AbstractName abstractName;
+	private String domainURI;
+	private String jarFileName;
+	private String jndiName;
+	private InitialContext ctx;
+//	private static final String jndiPath = "ger:/";
+	
+	public EmbeddedRuntimeGBean(ClassLoader classLoader, ServerInfo serverInfo, AbstractName abstractName, String domainURI, String jndiName){
+		this.classLoader = Thread.currentThread().getContextClassLoader();
+		this.jndiName = jndiName;	    
+	    this.serverInfo = serverInfo;
+	    this.abstractName = abstractName;
+	    this.domainURI = domainURI;	    
+	    try {
+			ctx = new InitialContext();
+		} catch (NamingException e) {
+			throw new IllegalStateException("JNDI Name service is not properly initialized");
+		}
+	    
+	}
+	
+	public EmbeddedRuntimeGBean(){
+		this.classLoader = null;			    
+	    this.serverInfo = null;
+	    this.abstractName = null;
+	    this.domainURI = null;
+	    this.jndiName = "";
+	    try {
+			ctx = new InitialContext();
+		} catch (NamingException e) {
+			throw new IllegalStateException("JNDI Name service is not properly initialized");
+		}
+	}
+      
+	public void doStart() throws Exception {
+        String contributionRoot = null;
+        try {
+        	contributionRoot = SCADomainHelper.getLocation(serverInfo, abstractName, jarFileName);
+        	scaDomain = SCADomain.newInstance(domainURI, contributionRoot, SCADomainHelper.getDeployableComposites(classLoader, serverInfo, abstractName, jarFileName));                        
+            ctx.bind(jndiName, scaDomain);
+        } catch (Throwable e) {
+        	throw new Exception(e);
+        }
+	}
+
+	public void doStop() throws Exception {
+		if (scaDomain != null) {
+            scaDomain.close();
+            ctx.unbind(jndiName);
+        }		
+	}
+
+	public void doFail() {
+		if (scaDomain != null) {
+            scaDomain.close();
+            try {
+				ctx.unbind(jndiName);
+			} catch (NamingException e) {
+				// TODO Auto-generated catch block
+				e.printStackTrace();
+			}
+        }
+	}
+
+	 public static final GBeanInfo GBEAN_INFO;
+	    static {
+	        GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(EmbeddedRuntimeGBean.class,NameFactory.GERONIMO_SERVICE);
+	        infoFactory.addAttribute("classLoader", ClassLoader.class, false);
+	        infoFactory.addAttribute("abstractName", AbstractName.class, false);
+	        infoFactory.addAttribute("domainURI", String.class, true, true);
+	        infoFactory.addAttribute("jarFileName", String.class, true, true);
+	        infoFactory.addReference("serverInfo", ServerInfo.class);	     	        
+	        infoFactory.addAttribute("SCADomain", "org.apache.tuscany.sca.host.embedded.SCADomain", false, true);
+	        infoFactory.addAttribute("jndiName", String.class, false, true);
+	        infoFactory.addInterface(SCADomainInterface.class);
+	        infoFactory.setConstructor(new String[]{"classLoader","serverInfo","abstractName","domainURI","jndiName"});
+	        GBEAN_INFO = infoFactory.getBeanInfo();
+	    }
+
+	    public static GBeanInfo getGBeanInfo() {
+	        return GBEAN_INFO;
+	    }
+
+		public SCADomain getScaDomain() {
+			return scaDomain;
+		}
+
+		public String getJarFileName() {
+			return jarFileName;
+		}
+
+		public void setJarFileName(String jarFileName) {
+			this.jarFileName = jarFileName;
+		}	
+
+}

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/EmbeddedRuntimeGBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java Wed Jun 13 04:14:00 2007
@@ -0,0 +1,152 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package org.apache.geronimo.tuscany;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Set;
+import java.util.jar.JarEntry;
+import java.util.jar.JarFile;
+
+import org.apache.geronimo.gbean.AbstractName;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
+import org.apache.geronimo.system.serverinfo.ServerInfo;
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * Utility class to initialize the SCADomain associated with a Module
+ */
+public class SCADomainHelper {
+
+	/**
+	 * Gets all the composites in the Application. 
+	 * 
+	 * @throws IOException .
+	 */    
+	
+	protected static String[] getDeployableComposites(ClassLoader classLoader,
+			ServerInfo serverInfo, AbstractName abstractName, String jarFileName)
+			throws IOException ,URISyntaxException{
+		String path = getLocation(serverInfo, abstractName, jarFileName);
+		List<String> compositeNames = new ArrayList<String>();	
+		findSCDLInJar(compositeNames,new File(new URI(path)));
+		return compositeNames.toArray(new String[compositeNames.size()]);	
+	}
+	
+	protected static String getLocation(ServerInfo serverInfo, AbstractName abstractName){
+		String location = serverInfo.getCurrentBaseDirectory() + File.separator
+		+ "repository" + File.separator
+		+ abstractName.getArtifact().getGroupId().toString()
+		+ File.separator
+		+ abstractName.getArtifact().getArtifactId().toString()
+		+ File.separator
+		+ abstractName.getArtifact().getVersion().toString()
+		+ File.separator
+		+ abstractName.getArtifact().getArtifactId().toString() + "-"
+		+ abstractName.getArtifact().getVersion().toString() + "."
+		+ abstractName.getArtifact().getType().toString()
+		+ File.separator;
+		
+		return new File(location).toURI().toString();
+
+	}
+	protected static String getLocation(ServerInfo serverInfo, AbstractName abstractName, String jarFileName){
+        if(jarFileName != null && jarFileName.length() != -1){		
+		    return getLocation(serverInfo, abstractName) + jarFileName;
+        } else {
+        	return getLocation(serverInfo, abstractName);
+        }
+
+	}
+
+
+	protected static void getCompositeNames(List<String> compositeNames, String path) throws URISyntaxException{
+		File file = null;
+		try {
+			file = new File(new URI(path));
+		} catch (URISyntaxException e) {
+            throw e;
+        }
+		int length = file.toURI().getPath().length() + 1;
+		findSCDLInDir(compositeNames,file);
+		String newPath = null;
+		String oldPath = null;
+		for(int i=0;i<compositeNames.size();i++){
+			oldPath = compositeNames.get(i);
+			if(oldPath.length() > length && 
+			    oldPath.indexOf(file.toURI().getPath()) != -1){
+			        newPath = compositeNames.get(i).substring(length);
+			        compositeNames.set(i,newPath);
+			} 
+			
+		}
+
+	}
+	
+	private static void findSCDLInJar(List<String> compositeNames,
+			File file) {
+		String name = null;
+	    JarFile jar = null;
+	    try {
+		    jar = new JarFile(file);
+	    } catch (IOException e1) {
+		// TODO Auto-generated catch block
+		    e1.printStackTrace();
+	    }
+	    for (Enumeration<JarEntry> e = jar.entries(); e.hasMoreElements();) {
+            JarEntry entry = e.nextElement();
+            name = entry.getName();            
+	        if (name.endsWith(".composite")) {
+		        compositeNames.add(name);	        	
+	        }
+	    }
+		
+	}
+	
+	private static void findSCDLInDir(List<String> compositeNames,
+			File file) throws URISyntaxException{
+		String path = null;
+    	File[] files = file.listFiles();
+    	if(files != null){
+	    	for (int i = 0; i < files.length; i++) {
+	    		if(files[i].isDirectory()){
+	    			findSCDLInDir(compositeNames, files[i]);
+	    		} else if(files[i].getName().endsWith(".jar")){
+	    			findSCDLInJar(compositeNames, files[i]);
+	    		} else {
+				    path = files[i].toURI().getPath();
+				    if (path.endsWith(".composite")) {
+					        compositeNames.add(path);
+				    }
+			    }
+    	    }
+    	}
+	}
+
+	
+	
+}

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainHelper.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java Wed Jun 13 04:14:00 2007
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.tuscany;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+public interface SCADomainInterface {
+	
+	public SCADomain getScaDomain();
+
+}

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/SCADomainInterface.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java Wed Jun 13 04:14:00 2007
@@ -0,0 +1,333 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.tuscany;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.net.URI;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.jar.JarEntry;
+import java.util.jar.JarFile;
+
+import javax.xml.namespace.QName;
+
+import org.apache.geronimo.common.DeploymentException;
+import org.apache.geronimo.deployment.ConfigurationBuilder;
+import org.apache.geronimo.deployment.DeploymentContext;
+import org.apache.geronimo.deployment.ModuleIDBuilder;
+import org.apache.geronimo.deployment.service.EnvironmentBuilder;
+import org.apache.geronimo.deployment.util.DeploymentUtil;
+import org.apache.geronimo.deployment.xbeans.ArtifactType;
+import org.apache.geronimo.deployment.xbeans.EnvironmentType;
+import org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil;
+import org.apache.geronimo.gbean.AbstractName;
+import org.apache.geronimo.gbean.AbstractNameQuery;
+import org.apache.geronimo.gbean.GBeanData;
+import org.apache.geronimo.gbean.GBeanInfo;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
+import org.apache.geronimo.kernel.GBeanAlreadyExistsException;
+import org.apache.geronimo.kernel.Kernel;
+import org.apache.geronimo.kernel.Naming;
+import org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException;
+import org.apache.geronimo.kernel.config.ConfigurationManager;
+import org.apache.geronimo.kernel.config.ConfigurationModuleType;
+import org.apache.geronimo.kernel.config.ConfigurationStore;
+import org.apache.geronimo.kernel.config.ConfigurationUtil;
+import org.apache.geronimo.kernel.config.SimpleConfigurationManager;
+import org.apache.geronimo.kernel.repository.Artifact;
+import org.apache.geronimo.kernel.repository.ArtifactResolver;
+import org.apache.geronimo.kernel.repository.Environment;
+import org.apache.geronimo.kernel.repository.Repository;
+import org.apache.xmlbeans.XmlCursor;
+import org.apache.xmlbeans.XmlException;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.geronimo.tuscany.xmlbeans.ScaDomainDocument;
+import org.apache.geronimo.tuscany.xmlbeans.ScaDomainType;
+
+public class TuscanyBuilder implements ConfigurationBuilder {
+
+    private static final QName COMPOSITES_QNAME = ScaDomainDocument.type.getDocumentElementName();
+
+    private final Environment defaultEnvironment;
+    private final Collection repositories;
+    private final Naming naming;
+    private final ConfigurationManager configurationManager;    
+    private final ClassLoader classLoader;    
+    private final AbstractNameQuery serverInfoQuery;
+    
+    public TuscanyBuilder(Environment defaultEnvironment, Collection repositories, Kernel kernel, ClassLoader classLoader, AbstractNameQuery serverInfoQuery) {
+        this.defaultEnvironment = defaultEnvironment;
+        this.repositories = repositories;        
+        naming = kernel.getNaming();
+        configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
+        this.classLoader = classLoader;        
+        this.serverInfoQuery = serverInfoQuery;
+    }
+    
+    public TuscanyBuilder(){
+        this.defaultEnvironment = null;
+        this.repositories = null;        
+        naming = null;
+        configurationManager = null;
+        this.classLoader = null;        
+        this.serverInfoQuery = null;
+    	
+    }
+
+    public Object getDeploymentPlan(File planFile, JarFile jarFile, ModuleIDBuilder idBuilder) throws DeploymentException {
+        if (planFile == null && jarFile == null) {
+            return null;
+        }
+
+        try {
+            XmlObject xmlObject;
+            if (planFile != null) {
+                xmlObject = XmlBeansUtil.parse(planFile);
+            } else {
+            	String name = null;
+            	List<String> plans = new ArrayList();
+    		    for (Enumeration<JarEntry> e = jarFile.entries(); e.hasMoreElements();) {
+                    JarEntry entry = e.nextElement();
+                    name = entry.getName();            
+    		        if (name.endsWith(".xml")) {					
+    			        plans.add(name);
+    		        }
+    		    }
+    		    //for the case where we use a deployment watcher for deploying tuscany composites inside an EAR/WAR/JAR. 
+    		    //Can be removed if we are not going to support this.
+    		    if(plans.contains("WEB-INF/geronimo-web.xml") || plans.contains("META-INF/openejb-jar.xml") || plans.contains("META-INF/geronimo-application.xml")){
+    		    	return null;
+    		    }
+                URL path = DeploymentUtil.createJarURL(jarFile, "META-INF/geronimo-tuscany.xml");
+                try {
+                    xmlObject = XmlBeansUtil.parse(path,classLoader);
+                } catch (FileNotFoundException e) {
+                    // it's not a tuscany composite deployment
+                    return null;
+                }
+            }
+            if (xmlObject == null) {
+                return null;
+            }
+
+            XmlCursor cursor = xmlObject.newCursor();
+            try {
+                cursor.toFirstChild();
+                if (!COMPOSITES_QNAME.equals(cursor.getName())) {
+                    return null;
+                }
+            } finally {
+                cursor.dispose();
+            }
+            ScaDomainDocument moduleDoc;
+            if (xmlObject instanceof ScaDomainDocument) {
+                moduleDoc = (ScaDomainDocument) xmlObject;
+            } else {
+                moduleDoc = (ScaDomainDocument) xmlObject.changeType(ScaDomainDocument.type);
+            }
+            Collection errors = new ArrayList();
+            if (!moduleDoc.validate(XmlBeansUtil.createXmlOptions(errors))) {
+                throw new DeploymentException("Invalid deployment descriptor: " + errors + "\nDescriptor: " + moduleDoc.toString());
+            }            
+            if (jarFile == null && (moduleDoc.getScaDomain().getEnvironment() == null ||
+                    moduleDoc.getScaDomain().getEnvironment().getModuleId() == null ||
+                    moduleDoc.getScaDomain().getEnvironment().getModuleId().getArtifactId() == null)) {
+                if (moduleDoc.getScaDomain().getEnvironment() == null) {
+                    moduleDoc.getScaDomain().addNewEnvironment();
+                }
+                if (moduleDoc.getScaDomain().getEnvironment().getModuleId() == null) {
+                    moduleDoc.getScaDomain().getEnvironment().addNewModuleId();
+                }
+                String name = planFile.getName();
+                int pos = name.lastIndexOf('.');
+                if (pos > -1) {
+                    name = name.substring(0, pos);
+                }
+                moduleDoc.getScaDomain().getEnvironment().getModuleId().setArtifactId(name);
+            }
+            return moduleDoc.getScaDomain();
+        } catch (XmlException e) {
+            throw new DeploymentException("Could not parse xml in plan", e);
+        } catch (IOException e) {
+            throw new DeploymentException("no plan at " + planFile, e);
+        }
+    }
+    
+    public ScaDomainDocument processPlanURL(URL url) throws DeploymentException, IOException {
+        try {
+            XmlObject xmlObject;
+            try {
+                xmlObject = XmlBeansUtil.parse(url,classLoader);
+            } catch (FileNotFoundException e) {               
+                return null;
+            }
+            if (xmlObject == null) {
+                return null;
+            }
+
+            XmlCursor cursor = xmlObject.newCursor();
+            try {
+                cursor.toFirstChild();
+                if (!COMPOSITES_QNAME.equals(cursor.getName())) {
+                    return null;
+                }
+            } finally {
+                cursor.dispose();
+            }
+            ScaDomainDocument moduleDoc;
+            if (xmlObject instanceof ScaDomainDocument) {
+                moduleDoc = (ScaDomainDocument) xmlObject;
+            } else {
+                moduleDoc = (ScaDomainDocument) xmlObject.changeType(ScaDomainDocument.type);
+            }
+            Collection errors = new ArrayList();
+            if (!moduleDoc.validate(XmlBeansUtil.createXmlOptions(errors))) {
+                throw new DeploymentException("Invalid deployment descriptor: " + errors + "\nDescriptor: " + moduleDoc.toString());
+            }
+            return moduleDoc;
+        } catch (XmlException e) {
+            throw new DeploymentException("Could not parse xml in plan", e);
+        }
+
+    }
+
+    public Environment processEnvironment(EnvironmentType environmentType) {
+        return EnvironmentBuilder.buildEnvironment(environmentType, defaultEnvironment);
+    }    
+
+    public Artifact getConfigurationID(Object plan, JarFile module, ModuleIDBuilder idBuilder) throws IOException, DeploymentException {
+        ScaDomainType configType = (ScaDomainType) plan;
+        EnvironmentType environmentType = configType.getEnvironment();
+        Environment environment = EnvironmentBuilder.buildEnvironment(environmentType, defaultEnvironment);
+        idBuilder.resolve(environment, module == null ? "" : new File(module.getName()).getName(), "car");
+        if(!environment.getConfigId().isResolved()) {
+            throw new IllegalStateException("Module ID is not fully populated ("+environment.getConfigId()+")");
+        }
+        return environment.getConfigId();
+    }
+
+    public DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, Object plan, JarFile jar, 
+        Collection configurationStores, ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws IOException, DeploymentException {
+        
+    	ScaDomainType configType = (ScaDomainType) plan;
+
+        return buildConfiguration(inPlaceDeployment, configId, configType, jar, configurationStores, artifactResolver, targetConfigurationStore);
+    }
+
+    public DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, ScaDomainType moduleType, JarFile jar, Collection configurationStores, 
+        ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws DeploymentException, IOException {
+        
+	    ArtifactType type = moduleType.getEnvironment().isSetModuleId() ? moduleType.getEnvironment().getModuleId() : moduleType.getEnvironment().addNewModuleId();
+        type.setArtifactId(configId.getArtifactId());
+        type.setGroupId(configId.getGroupId());
+        type.setType(configId.getType());
+        type.setVersion(configId.getVersion().toString());
+        Environment environment = EnvironmentBuilder.buildEnvironment(moduleType.getEnvironment(), defaultEnvironment);
+        if(!environment.getConfigId().isResolved()) {
+            throw new IllegalStateException("Module ID should be fully resolved by now (not "+environment.getConfigId()+")");
+        }
+        File outfile;
+        try {
+            outfile = targetConfigurationStore.createNewConfigurationDir(configId);
+        } catch (ConfigurationAlreadyExistsException e) {
+            throw new DeploymentException(e);
+        }
+
+        ConfigurationManager configurationManager = this.configurationManager;
+        if (configurationManager == null) {
+            configurationManager = new SimpleConfigurationManager(configurationStores, artifactResolver, repositories);
+        }
+        AbstractName moduleName = naming.createRootName(configId, configId.toString(), "ServiceModule");
+        DeploymentContext context = new DeploymentContext(outfile,
+                inPlaceDeployment && null != jar ? DeploymentUtil.toFile(jar) : null,
+                environment,
+                moduleName,
+                ConfigurationModuleType.SERVICE,
+                naming,
+                configurationManager,
+                repositories
+        );
+        String jarFileName = "";
+        if(jar != null) {        	
+            File file = new File(jar.getName());
+            context.addIncludeAsPackedJar(URI.create(file.getName()), jar);
+            jarFileName = file.getName();
+        }
+        try {
+            ClassLoader cl = context.getConfiguration().getConfigurationClassLoader();            
+            addComposite(moduleType.getDomainURI(), moduleType.getJndiName(), cl, moduleName, context, jarFileName);
+            return context;
+        } catch (RuntimeException t) {
+            context.close();
+            throw t;
+        } catch (Error e) {
+            context.close();
+            throw e;
+        }
+    }
+
+    public void addComposite(String domainURI, String name, ClassLoader cl, AbstractName moduleName, DeploymentContext context, String jarFileName) throws DeploymentException {
+    	GBeanData data = processComposite(domainURI, name, cl, moduleName.getArtifact(),  jarFileName);
+        try {
+            context.addGBean(data);
+        } catch (GBeanAlreadyExistsException e) {
+            throw new DeploymentException("Cannot add Tuscany Domain Composite with domain URI'"+data.getAttribute("domainURI")+"' for module "+moduleName+"; a domain composite with that domain URI already exists.");
+        }
+    }
+
+   
+
+    public GBeanData processComposite(String domainURI, String jndiName, ClassLoader cl, Artifact parentModule, String jarFileName) {
+        GBeanInfo gBeanInfo = GBeanInfo.getGBeanInfo(EmbeddedRuntimeGBean.class.getName(), cl);
+        AbstractName moduleName = naming.createRootName(parentModule, parentModule.toString(), "ServiceModule");
+        AbstractName abstractName = naming.createChildName(moduleName, domainURI, "GBean");
+        GBeanData data = new GBeanData(abstractName, gBeanInfo);        
+        data.setReferencePattern("serverInfo", serverInfoQuery);
+        data.setAttribute("domainURI", domainURI);
+        data.setAttribute("jarFileName",jarFileName);
+        data.setAttribute("jndiName",jndiName);
+        return data;
+    }    
+        
+    public static final GBeanInfo GBEAN_INFO;
+
+    static {
+        GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic("Tuscany Builder", TuscanyBuilder.class, "ConfigBuilder");
+
+        infoFactory.addInterface(ConfigurationBuilder.class);
+        infoFactory.addAttribute("defaultEnvironment", Environment.class, true);        
+        infoFactory.addAttribute("serverInfoQuery", AbstractNameQuery.class, true, true);
+        infoFactory.addAttribute("kernel", Kernel.class, false, false);
+        infoFactory.addAttribute("classLoader",ClassLoader.class,false);
+        infoFactory.addReference("Repository", Repository.class, "Repository");
+        infoFactory.setConstructor(new String[]{"defaultEnvironment", "Repository", "kernel", "classLoader", "serverInfoQuery"});
+
+        GBEAN_INFO = infoFactory.getBeanInfo();
+    }
+
+    public static GBeanInfo getGBeanInfo() {
+        return GBEAN_INFO;
+    }
+}
\ No newline at end of file

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/java/org/apache/geronimo/tuscany/TuscanyBuilder.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd Wed Jun 13 04:14:00 2007
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+-->
+
+<xs:schema
+        targetNamespace="http://geronimo.apache.org/xml/ns/plugins/tuscany-0.3"
+        xmlns:tuscany="http://geronimo.apache.org/xml/ns/plugins/tuscany-0.3"
+        xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"
+        xmlns:xs="http://www.w3.org/2001/XMLSchema"
+        elementFormDefault="qualified"
+        attributeFormDefault="unqualified"
+        >
+
+    <xs:annotation>
+        <xs:documentation>
+            Schema for a Tuscany Service.
+        </xs:documentation>
+    </xs:annotation>
+
+    <xs:import namespace="http://geronimo.apache.org/xml/ns/deployment-1.2" schemaLocation="/C:/geronimo-tomcat6-jee5-2.0-SNAPSHOT/schema/geronimo-module-1.2.xsd"/>
+
+    <!--   Top-level element is composites   -->
+
+    <xs:element name="sca-domain" type="tuscany:scaDomainType">
+        <xs:annotation>
+            <xs:documentation>
+                Corresponds to an SCADomain in Apache Tuscany. An SCA Domain represents a 
+                complete runtime configuration.
+            </xs:documentation>
+        </xs:annotation>
+    </xs:element>
+
+    <xs:complexType name="scaDomainType">
+        <xs:sequence>
+            <xs:element ref="sys:environment"/>
+            <xs:element name="domainURI" type="xs:string">
+                <xs:annotation>
+                    <xs:documentation>
+                        A unique URI used to identify the Tuscany SCADomain that 
+                        is associated with this application. All the composites found
+                        during deployment will be added to this domain. As of now it is assumed
+                        that the SCADomain will be in the same geronimo instance.
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="jndi-name" type="xs:string">
+                <xs:annotation>
+                    <xs:documentation>
+                        The name to be used to bind the sca-domain in jndi
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:element>            
+        </xs:sequence>
+    </xs:complexType>
+</xs:schema>
+

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/geronimo-tuscany-0.3.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml Wed Jun 13 04:14:00 2007
@@ -0,0 +1,5 @@
+<xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config">    
+        <xb:namespace uri="http://geronimo.apache.org/xml/ns/plugins/tuscany-0.3">        
+                <xb:package>org.apache.geronimo.tuscany.xmlbeans</xb:package>    
+        </xb:namespace>
+</xb:config>
\ No newline at end of file

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/modules/src/main/schema/xmlconfig.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml?view=auto&rev=546825
==============================================================================
--- geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml (added)
+++ geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml Wed Jun 13 04:14:00 2007
@@ -0,0 +1,176 @@
+<project
+    xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>geronimo-plugins</groupId>
+    <artifactId>tuscany</artifactId>
+    <packaging>pom</packaging>
+    <version>1.0</version>
+    <name>Tuscany Plugin for Geronimo</name>
+    <properties>
+        <geronimoVersion>2.0-SNAPSHOT</geronimoVersion> 
+    </properties>
+    <modules>
+        <module>modules</module>      
+        <module>configs</module>
+    </modules>
+
+    <repositories>
+         <repository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshots Repository</name>
+            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>true</enabled>
+                <updatePolicy>daily</updatePolicy>
+                <checksumPolicy>ignore</checksumPolicy>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </repository>
+
+        <repository>
+            <id>tomcat-m2-repo</id>
+            <name>Codehaus M2 Repository</name>
+            <url>http://repository.codehaus.org/</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+        <repository>
+            <id>ussg-maven-repo</id>
+            <name>USSG M2 Repository</name>
+            <url>http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2/</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+        <repository>
+            <id>ibiblio-m2-repo</id>
+            <name>iBiblio M2 Repository</name>
+            <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
+            <layout>default</layout>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </repository>
+    </repositories>
+
+    
+
+  <dependencyManagement>
+      <dependencies>
+      <dependency>
+        <groupId>stax</groupId>
+        <artifactId>stax-api</artifactId>
+        <version>1.0.1</version>
+      </dependency> 
+      <dependency>
+        <groupId>wsdl4j</groupId>
+        <artifactId>wsdl4j</artifactId>
+        <version>1.6.2</version>
+      </dependency> 
+      <dependency>
+        <groupId>woodstox</groupId>
+        <artifactId>wstx-asl</artifactId>
+        <version>3.2.0</version>
+      </dependency> 
+      <dependency>
+        <groupId>org.apache.ws.commons</groupId>
+        <artifactId>XmlSchema</artifactId>
+        <version>1.1</version>
+      </dependency>                               
+      <dependency>
+        <groupId>org.eclipse.emf</groupId>
+        <artifactId>common</artifactId>
+        <version>2.1.0</version>
+      </dependency>                         
+      <dependency>
+        <groupId>org.eclipse.xsd</groupId>
+        <artifactId>xsd</artifactId>        
+        <version>2.1.1</version>            
+      </dependency>
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-host-embedded</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>            
+      </dependency>                    
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>sca-api</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>            
+      </dependency>                    
+      <dependency>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-core</artifactId>        
+        <version>1.0-incubating-SNAPSHOT</version>            
+      </dependency>                    
+      
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-j2ee</artifactId>        
+        <version>2.0-SNAPSHOT</version>            
+      </dependency>                          
+      <dependency>
+        <groupId>xmlbeans</groupId>
+        <artifactId>xbean</artifactId>
+        <version>2.0.0</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-kernel</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-deployment</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-service-builder</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.geronimo.modules</groupId>
+        <artifactId>geronimo-common</artifactId>
+        <version>2.0-SNAPSHOT</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <!--  <build>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-clean-plugin</artifactId>
+                    <version>2.1</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.geronimo.plugins</groupId>
+                    <artifactId>car-maven-plugin</artifactId>
+                    <version>1.1</version>
+                    <extensions>true</extensions>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build> -->
+</project>
+

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/sandbox/tuscany-integration/geronimo-tuscany/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/sandbox/tuscany-integration/samples/calculator.jar
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/samples/calculator.jar?view=auto&rev=546825
==============================================================================
Binary file - no diff available.

Propchange: geronimo/sandbox/tuscany-integration/samples/calculator.jar
------------------------------------------------------------------------------
    svn:mime-type = application/java-archive

Added: geronimo/sandbox/tuscany-integration/samples/calculatorClient.war
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/samples/calculatorClient.war?view=auto&rev=546825
==============================================================================
Binary file - no diff available.

Propchange: geronimo/sandbox/tuscany-integration/samples/calculatorClient.war
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream