tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r814632 - in /tuscany/java/sca/itest/jms/exceptions: ./ src/main/java/org/apache/tuscany/sca/binding/jms/ src/main/resources/META-INF/ src/main/resources/exceptions/ src/test/java/org/apache/tuscany/sca/binding/jms/
Date Mon, 14 Sep 2009 13:23:46 GMT
Author: antelder
Date: Mon Sep 14 13:23:46 2009
New Revision: 814632

URL: http://svn.apache.org/viewvc?rev=814632&view=rev
Log:
Start to bring up the jms exceptions test, all but one test still fail

Added:
    tuscany/java/sca/itest/jms/exceptions/src/main/resources/META-INF/
    tuscany/java/sca/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml
Modified:
    tuscany/java/sca/itest/jms/exceptions/pom.xml
    tuscany/java/sca/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java
    tuscany/java/sca/itest/jms/exceptions/src/main/resources/exceptions/service.composite
    tuscany/java/sca/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java

Modified: tuscany/java/sca/itest/jms/exceptions/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/jms/exceptions/pom.xml?rev=814632&r1=814631&r2=814632&view=diff
==============================================================================
--- tuscany/java/sca/itest/jms/exceptions/pom.xml (original)
+++ tuscany/java/sca/itest/jms/exceptions/pom.xml Mon Sep 14 13:23:46 2009
@@ -22,57 +22,42 @@
     <parent>
         <groupId>org.apache.tuscany.sca</groupId>
         <artifactId>tuscany-itest</artifactId>
-        <version>1.6-SNAPSHOT</version>
-        <relativePath>../../pom.xml</relativePath>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
     <artifactId>itest-jms-nonscaclient-exceptions</artifactId>
     <name>Apache Tuscany SCA iTest JMS NonSCA Client Exceptions</name>
 
-    <repositories>
-       <repository>
-          <id>apache.incubator</id>
-          <url>http://people.apache.org/repo/m2-incubating-repository</url>
-       </repository>
-    </repositories>
-
     <dependencies>
         
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-sca-api</artifactId>
-            <version>1.6-SNAPSHOT</version>
+            <version>2.0-SNAPSHOT</version>
         </dependency>        
 
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
-            <artifactId>tuscany-host-embedded</artifactId>
-            <version>1.6-SNAPSHOT</version>
-            <scope>runtime</scope>
-        </dependency> 
+            <artifactId>tuscany-node-impl</artifactId>
+            <version>2.0-SNAPSHOT</version>
+        </dependency>        
 
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-implementation-java-runtime</artifactId>
-            <version>1.6-SNAPSHOT</version>
+            <version>2.0-SNAPSHOT</version>
             <scope>runtime</scope>
         </dependency>
         
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
-            <artifactId>tuscany-binding-jms-policy</artifactId>
-            <version>1.6-SNAPSHOT</version>
-            <scope>runtime</scope>
-        </dependency>        
-
-        <dependency>
-            <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-binding-jms-runtime</artifactId>
-            <version>1.6-SNAPSHOT</version>
+            <version>2.0-SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>tuscany-host-jms-asf</artifactId>
-            <version>1.6-SNAPSHOT</version>
+            <version>2.0-SNAPSHOT</version>
         </dependency>
 
         <dependency>

Modified: tuscany/java/sca/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java?rev=814632&r1=814631&r2=814632&view=diff
==============================================================================
--- tuscany/java/sca/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java
(original)
+++ tuscany/java/sca/itest/jms/exceptions/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java
Mon Sep 14 13:23:46 2009
@@ -19,7 +19,7 @@
 
 package org.apache.tuscany.sca.binding.jms;
 
-import org.osoa.sca.annotations.Remotable;
+import org.oasisopen.sca.annotation.Remotable;
 
 @Remotable
 public interface ExceptionService {

Added: tuscany/java/sca/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml?rev=814632&view=auto
==============================================================================
--- tuscany/java/sca/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml
(added)
+++ tuscany/java/sca/itest/jms/exceptions/src/main/resources/META-INF/sca-contribution.xml
Mon Sep 14 13:23:46 2009
@@ -0,0 +1,23 @@
+<?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.    
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+              xmlns:itest="http://itest">
+   <deployable composite="itest:ExceptionServiceComposite"/>
+</contribution>
\ No newline at end of file

Modified: tuscany/java/sca/itest/jms/exceptions/src/main/resources/exceptions/service.composite
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/jms/exceptions/src/main/resources/exceptions/service.composite?rev=814632&r1=814631&r2=814632&view=diff
==============================================================================
--- tuscany/java/sca/itest/jms/exceptions/src/main/resources/exceptions/service.composite
(original)
+++ tuscany/java/sca/itest/jms/exceptions/src/main/resources/exceptions/service.composite
Mon Sep 14 13:23:46 2009
@@ -17,15 +17,16 @@
  * specific language governing permissions and limitations
  * under the License.    
  -->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
-           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0" 
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+           targetNamespace="http://itest"
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1" 
            name="ExceptionServiceComposite">
 
     <component name="TextExceptionService">
         <implementation.java class="org.apache.tuscany.sca.binding.jms.ExceptionServiceImpl"/>
         <service name="ExceptionService">
             <binding.jms>
-                 <destination name="TextExceptionService"/>
+                 <destination jndiName="TextExceptionService"/>
             </binding.jms>
         </service> 
     </component>       
@@ -34,7 +35,7 @@
         <implementation.java class="org.apache.tuscany.sca.binding.jms.ExceptionServiceImpl"/>
         <service name="ExceptionService">
             <binding.jms>
-                 <destination name="ObjectExceptionService"/>
+                 <destination jndiName="ObjectExceptionService"/>
                  <tuscany:wireFormat.jmsObject/>
             </binding.jms>
         </service> 

Modified: tuscany/java/sca/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java?rev=814632&r1=814631&r2=814632&view=diff
==============================================================================
--- tuscany/java/sca/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
(original)
+++ tuscany/java/sca/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
Mon Sep 14 13:23:46 2009
@@ -38,7 +38,8 @@
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
-import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.NodeFactory;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -49,7 +50,7 @@
  */
 public class ExceptionsTestCase {
 
-    private static SCADomain scaDomain;
+    private Node node;
     private Session session;
     private InitialContext context;
     private Connection connection;
@@ -64,7 +65,7 @@
 
     @Before
     public void init() {
-        scaDomain = SCADomain.newInstance("http://localhost", "/", "exceptions/service.composite");
+        node = NodeFactory.newInstance().createNode().start();
     }
 
     @Test
@@ -155,8 +156,8 @@
 
     @After
     public void end() throws JMSException {
-        if (scaDomain != null) {
-            scaDomain.close();
+        if (node != null) {
+            node.stop();
         }
         if (connection != null) {
             connection.close();



Mime
View raw message