summaryrefslogtreecommitdiffstats
path: root/tags/java/sca/1.5.1/itest/callablereferences-ws
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java/sca/1.5.1/itest/callablereferences-ws')
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/pom.xml59
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java26
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java59
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java30
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java33
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java26
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java96
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java27
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java46
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java34
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java49
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite54
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/example.composite40
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java44
-rw-r--r--tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java49
15 files changed, 0 insertions, 672 deletions
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/pom.xml b/tags/java/sca/1.5.1/itest/callablereferences-ws/pom.xml
deleted file mode 100644
index cff55122fc..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/pom.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?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.
--->
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-itest</artifactId>
- <version>1.5.1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
- <artifactId>itest-callablereferences-ws</artifactId>
- <name>Apache Tuscany SCA iTest Callable References over Web Services</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-embedded</artifactId>
- <version>1.5.1</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-java-runtime</artifactId>
- <version>1.5.1</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-ws-axis2</artifactId>
- <version>1.5.1</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-tomcat</artifactId>
- <version>1.5.1</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-</project>
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java
deleted file mode 100644
index ecf1ac27e1..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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 com.example;
-
-public interface ExampleClient {
-
- void runTest();
-
- void sayHello(String name);
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java
deleted file mode 100644
index c46087d865..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * 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 com.example;
-
-import org.osoa.sca.CallableReference;
-import org.osoa.sca.ComponentContext;
-import org.osoa.sca.ServiceReference;
-import org.osoa.sca.annotations.Context;
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.Service;
-
-@Service(ExampleClient.class)
-@Scope("COMPOSITE")
-public class ExampleClientImpl implements ExampleClient {
-
- private ExampleService myService;
-
- @Context
- protected ComponentContext context;
-
- @Reference
- public void setMyService(ExampleService myService) {
- this.myService = myService;
- }
-
- public void runTest() {
- ServiceReference<ExampleClient> ref = context.createSelfReference(ExampleClient.class);
- ref.getService().sayHello("Jack");
- CallableReference result = myService.hello("Jill", ref);
- if (result != null) {
- ((CallableReference<ExampleClient>)result).getService().sayHello("John");
- }
- result = myService.hello("Jane", null);
- if (result != null) {
- ((CallableReference<ExampleClient>)result).getService().sayHello("Jim");
- }
- }
-
- public void sayHello(String name) {
- System.out.println("Hello, client " + name + "!");
- }
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java
deleted file mode 100644
index 670c145cc3..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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 com.example;
-
-import org.osoa.sca.CallableReference;
-import org.osoa.sca.ServiceReference;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface ExampleService {
-
- CallableReference hello(String name, ServiceReference ref);
-
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java
deleted file mode 100644
index eb4d647a22..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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 com.example;
-
-import org.osoa.sca.CallableReference;
-import org.osoa.sca.ServiceReference;
-
-public class ExampleServiceImpl implements ExampleService {
-
- public CallableReference hello(String name, ServiceReference ref) {
- if (ref != null) {
- ((ServiceReference<ExampleClient>)ref).getService().sayHello(name);
- }
- return (CallableReference)ref;
- }
-
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java
deleted file mode 100644
index bb5e57397d..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefwsreturn;
-
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface Alpha {
- boolean run();
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java
deleted file mode 100644
index 6e5f1cedf9..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefwsreturn;
-
-import org.osoa.sca.CallableReference;
-import org.osoa.sca.ComponentContext;
-import org.osoa.sca.Conversation;
-import org.osoa.sca.annotations.Context;
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.Service;
-
-@Service(Alpha.class)
-@Scope("COMPOSITE")
-public class AlphaImpl implements Alpha {
- @Reference
- public Beta beta;
-
- @Context
- protected ComponentContext componentContext;
-
- Object conversationId0 = null;
-
- public boolean run() {
- CallableReference<Gamma> gammaRef = null;
- try {
- Object conversationId1 = null;
- Object conversationId2 = null;
-
- // it is expected that this call returns a reference to Gamma that
- // reuses the established Conversation
- gammaRef = beta.getRef();
-
- // no Conversation exists
- Conversation con = gammaRef.getConversation();
- if (con == null) {
- System.out.println("Alpha1: Conversation to gamma is null");
- } else {
- System.out
- .println("Alpha1: Conversation to gamma exists. conversationId="
- + con.getConversationID());
- conversationId1 = con.getConversationID();
- }
-
- // this call should reuse a Conversation, but as none exists it
- // creates a new conversation
- gammaRef.getService().doSomething();
- gammaRef.getService().doSomething();
- gammaRef.getService().doSomething();
-
- con = gammaRef.getConversation();
- if (con == null) {
- System.out.println("Alpha2: Conversation to gamma is null");
- } else {
- System.out
- .println("Alpha2: Conversation to gamma exists. conversationId="
- + con.getConversationID());
- conversationId2 = con.getConversationID();
- }
-
- boolean testPassed = conversationId1.equals(conversationId2);
-
- if (conversationId0 == null){
- conversationId0 = conversationId1;
- return testPassed;
- } else {
- return testPassed && (!conversationId0.equals(conversationId1));
- }
-
- } catch (Exception e) {
- e.printStackTrace();
- return false;
- } finally {
- if (gammaRef != null) {
- gammaRef.getService().stop();
- }
- }
- }
-
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java
deleted file mode 100644
index 995e4fcf39..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefwsreturn;
-
-import org.osoa.sca.CallableReference;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface Beta {
- CallableReference<Gamma> getRef();
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java
deleted file mode 100644
index be72fd779e..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefwsreturn;
-
-import org.osoa.sca.CallableReference;
-import org.osoa.sca.ComponentContext;
-import org.osoa.sca.ServiceReference;
-import org.osoa.sca.annotations.Context;
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.Service;
-
-@Service(Beta.class)
-@Scope("COMPOSITE")
-public class BetaImpl implements Beta {
- @Context
- protected ComponentContext componentContext;
-
- @Reference
- public Gamma gamma;
-
- public CallableReference<Gamma> getRef() {
- ServiceReference<Gamma> gammaRef = componentContext
- .getServiceReference(Gamma.class, "gamma");
- Gamma g = gammaRef.getService();
- g.start();
- return gammaRef;
- }
-
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java
deleted file mode 100644
index b73f26b573..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefwsreturn;
-
-import org.osoa.sca.annotations.Conversational;
-import org.osoa.sca.annotations.EndsConversation;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-@Conversational
-public interface Gamma {
- int start();
-
- void doSomething();
-
- @EndsConversation
- void stop();
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java
deleted file mode 100644
index c3abc4c65d..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefwsreturn;
-
-import org.osoa.sca.annotations.ConversationID;
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.Service;
-
-@Service(Gamma.class)
-@Scope("CONVERSATION")
-public class GammaImpl implements Gamma {
- @ConversationID
- protected String conversationId;
-
- public GammaImpl() {
- System.out.println("GammaImpl:GammaImpl(), conversationId="
- + conversationId);
- }
-
- public int start() {
- System.out.println("Gamma:start(), conversationId=" + conversationId);
- return 1;
- }
-
- public void doSomething() {
- System.out.println("Gamma:doSomething(), conversationId="
- + conversationId);
- }
-
- public void stop() {
- System.out.println("Gamma:stop(), conversationId=" + conversationId);
- }
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite
deleted file mode 100644
index 3d782a0b84..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite
+++ /dev/null
@@ -1,54 +0,0 @@
-<?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
- * 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.
--->
-
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" xmlns:s="http://test"
- name="test">
-
- <component name="Alpha">
- <implementation.java
- class="org.apache.tuscany.sca.itest.callablerefwsreturn.AlphaImpl" />
- <service name="Alpha">
- <binding.sca />
- </service>
- <reference name="beta">
- <binding.ws uri="http://localhost:8085/Beta" />
- </reference>
- </component>
-
- <component name="Beta">
- <implementation.java
- class="org.apache.tuscany.sca.itest.callablerefwsreturn.BetaImpl" />
- <service name="Beta">
- <binding.ws uri="http://localhost:8085/Beta" />
- </service>
- <reference name="gamma">
- <binding.ws uri="http://localhost:8085/Gamma" />
- </reference>
- </component>
-
- <component name="Gamma">
- <implementation.java
- class="org.apache.tuscany.sca.itest.callablerefwsreturn.GammaImpl" />
- <service name="Gamma">
- <binding.ws uri="http://localhost:8085/Gamma" />
- </service>
- </component>
-
-</composite>
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/example.composite b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/example.composite
deleted file mode 100644
index ea0819a32e..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/main/resources/example.composite
+++ /dev/null
@@ -1,40 +0,0 @@
-<?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.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- targetNamespace="http://www.example.com"
- xmlns:hw="http://www.example.com"
- name="example">
-
- <component name="ExampleClientComponent">
- <implementation.java class="com.example.ExampleClientImpl" />
- <reference name="myService">
- <interface.java interface="com.example.ExampleService" />
- <binding.ws uri="http://localhost:8085/axis2/services/ExampleService" />
- </reference>
- </component>
-
- <component name="ExampleComponent">
- <implementation.java class="com.example.ExampleServiceImpl"/>
- <service name="ExampleService">
- <interface.java interface="com.example.ExampleService" />
- <binding.ws uri="http://localhost:8085/axis2/services/ExampleService" />
- </service>
- </component>
-</composite>
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java
deleted file mode 100644
index 310e31fb02..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * 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 com.example;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.sca.host.embedded.SCADomain;
-
-public class ExampleTestCase extends TestCase {
-
- private SCADomain scaDomain;
- private ExampleClient client;
-
- @Override
- protected void setUp() throws Exception {
- scaDomain = SCADomain.newInstance("example.composite");
- client = scaDomain.getService(ExampleClient.class, "ExampleClientComponent");
- }
-
- @Override
- protected void tearDown() throws Exception {
- scaDomain.close();
- }
-
- public void test() throws Exception {
- client.runTest();
- }
-}
diff --git a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java b/tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java
deleted file mode 100644
index 66fb2ef96c..0000000000
--- a/tags/java/sca/1.5.1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * 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.tuscany.sca.itest.callablerefws;
-
-import org.apache.tuscany.sca.host.embedded.SCADomain;
-import org.apache.tuscany.sca.itest.callablerefwsreturn.Alpha;
-import org.junit.AfterClass;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class CallableReferenceReturnTestCase {
- private static SCADomain domain;
- private static Alpha alpha;
-
- @BeforeClass
- public static void init() throws Exception {
- domain = SCADomain.newInstance("CallableReferenceWsReturnTest.composite");
- alpha = domain.getService(Alpha.class, "Alpha");
- }
-
- @AfterClass
- public static void destroy() throws Exception {
- domain.close();
- }
-
- @Test
- public void testCallableReferenceReturn() {
- Assert.assertTrue(alpha.run());
- Assert.assertTrue(alpha.run());
- }
-
-}