summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-13 01:23:07 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-13 01:23:07 +0000
commit539451c7e13d98504e6f3368d892406494ca711d (patch)
tree6fe54167c75379c836d9df585d6267df89f511d4 /sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms
parentb055ebe9fe44990f9dad2ed8c1c789aa43b2538d (diff)
Removing obsolete release candidate tags
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms')
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/README73
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/build.xml72
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/pom.xml103
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java44
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java30
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java24
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java24
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderService.java33
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java59
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java51
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/callbacks.composite44
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/jndi.properties30
-rw-r--r--sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/test/java/callbacks/CallbacksTestCase.java64
13 files changed, 0 insertions, 651 deletions
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/README b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/README
deleted file mode 100644
index b5e130e2fc..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/README
+++ /dev/null
@@ -1,73 +0,0 @@
-Callback JMS Sample
-===================
-This sample demonstrates SCA callbacks over the JMS binding. It implements the example
-described in the INFOQ article:
-
- "Can I call you back about that?" Building Asynchronous Services using Service Component Architecture
- See: http://www.infoq.com/articles/async-sca
-
-It implements a service for placing an order for some widgets, where the service is asynchronous
-and the client is informed of progress via a callback interface.
-
-The README in the samples directory (the directory above this) provides
-general instructions about building and running samples. Take a look there
-first.
-
-If you just want to run it to see what happens open a command prompt, navigate
-to this sample directory and do:
-
-ant run
-
-OR if you don't have ant, on Windows do
-
-java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-callbacks-jms.jar callbacks.CallbacksTestCase
-
-and on *nix do
-
-java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-callbacks-jms.jar callbacks.CallbacksTestCase
-
-Sample Overview
----------------
-
-The only changes over the sample code described in the INFOQ article are to add the @Remotable annotation
-to the service and callback interfaces, add the @Oneway annotation to the placeOrder and placeOrderResponse
-methods, and the composite XML is changed to use <binding.jms> instead of <binding.ws>.
-
-
-Building And Running The Sample Using Ant
------------------------------------------
-With the binary distribution the sample can be built and run using Ant as
-follows
-
-cd callbacks-jms
-ant compile
-ant run
-
-You should see the following output from the run target.
-
-run:
- [java] client placing order: callbacks.OrderRequest@c72243
- [java] service received order: callbacks.OrderRequest@1f94884
- [java] client callback received order response: callbacks.OrderResponse@14ab51b
-
-Building And Running The Sample Using Maven
--------------------------------------------
-With either the binary or source distributions the sample can be built and run
-using Maven as follows.
-
-cd callbacks-jms
-mvn
-
-You should see the following output from the test phase.
-
--------------------------------------------------------
- T E S T S
--------------------------------------------------------
-Running callbacks.CallbacksTestCase
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.272 sec
-
-Results :
-
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
-
-This shows that the Junit test cases have run successfully.
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/build.xml b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/build.xml
deleted file mode 100644
index bc2c191fc2..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/build.xml
+++ /dev/null
@@ -1,72 +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.
--->
-<project name="callbacks-jms" default="compile">
- <property name="test.class" value="callbacks.CallbackJMSClient" />
- <property name="test.jar" value="sample-callbacks-jms.jar" />
-
- <target name="init">
- <mkdir dir="target/classes"/>
- </target>
-
- <target name="compile" depends="init">
- <javac srcdir="src/main/java"
- destdir="target/classes"
- debug="on"
- source="1.5"
- target="1.5">
- <classpath>
- <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
- </classpath>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/${test.jar}" basedir="target/classes">
- <manifest>
- <attribute name="Main-Class" value="${test.class}" />
- </manifest>
- </jar>
- </target>
-
- <target name="run-classes">
- <java classname="${test.class}"
- fork="true">
- <classpath>
- <pathelement path="target/classes"/>
- <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
- </classpath>
- </java>
- </target>
-
- <target name="run">
- <java classname="${test.class}"
- fork="true">
- <classpath>
- <pathelement path="target/${test.jar}"/>
- <pathelement location="../../lib/tuscany-sca-manifest.jar"/>
- </classpath>
- </java>
- </target>
-
- <target name="clean">
- <delete quiet="true" includeemptydirs="true">
- <fileset dir="target"/>
- </delete>
- </target>
-</project>
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/pom.xml b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/pom.xml
deleted file mode 100644
index ade1a4d991..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/pom.xml
+++ /dev/null
@@ -1,103 +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-sca</artifactId>
- <version>1.5.1</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
- <artifactId>sample-callbacks-jms</artifactId>
- <name>Apache Tuscany SCA Sample Callbacks with JMS</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-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-jms-runtime</artifactId>
- <version>1.5.1</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-jms-asf</artifactId>
- <version>1.5.1</version>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.2</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.activemq</groupId>
- <artifactId>activemq-core</artifactId>
- <version>5.1.0</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>backport-util-concurrent</groupId>
- <artifactId>backport-util-concurrent</artifactId>
- <version>3.1</version>
- </dependency>
-<!--
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-ws-axis2</artifactId>
- <version>1.5.1</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-jetty</artifactId>
- <version>1.5.1</version>
- <scope>test</scope>
- </dependency>
--->
- </dependencies>
-
- <build>
- <finalName>${artifactId}</finalName>
- </build>
-</project>
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java
deleted file mode 100644
index c2e62ab8bd..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.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 callbacks;
-
-import org.apache.tuscany.sca.node.SCAClient;
-import org.apache.tuscany.sca.node.SCANode;
-import org.apache.tuscany.sca.node.SCANodeFactory;
-
-public class CallbackJMSClient {
-
- public static void main(String[] args) throws Exception {
-
- SCANodeFactory factory = SCANodeFactory.newInstance();
- SCANode node = factory.createSCANodeFromClassLoader("callbacks.composite", CallbackJMSClient.class.getClassLoader());
- node.start();
-
- OrderServiceClient orderServiceClient = ((SCAClient)node).getService(OrderServiceClient.class, "ClientComponent");
-
- // do something
- orderServiceClient.doSomeOrdering();
-
- // wait to give the service time to respond
- Thread.sleep(500);
-
- node.stop();
- }
-
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.java
deleted file mode 100644
index 775663cdff..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderCallback.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 callbacks;
-
-import org.osoa.sca.annotations.OneWay;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface OrderCallback {
-
- @OneWay
- public void placeOrderResponse(OrderResponse orderResponse);
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java
deleted file mode 100644
index 69f5751379..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderRequest.java
+++ /dev/null
@@ -1,24 +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 callbacks;
-
-public class OrderRequest {
-
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java
deleted file mode 100644
index 882bcf8479..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderResponse.java
+++ /dev/null
@@ -1,24 +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 callbacks;
-
-public class OrderResponse {
-
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderService.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderService.java
deleted file mode 100644
index 9f6d90577c..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderService.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 callbacks;
-
-import org.osoa.sca.annotations.Callback;
-import org.osoa.sca.annotations.OneWay;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-@Callback(OrderCallback.class)
-public interface OrderService {
-
- @OneWay
- public void placeOrder(OrderRequest orderRequest);
-
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.java
deleted file mode 100644
index 3393ae5dca..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceClient.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 callbacks;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-@Service(OrderServiceClient.class)
-public class OrderServiceClient implements OrderCallback {
-
- // A field to hold the reference to the order service
-
- private OrderService orderService;
- public static OrderResponse oResponse;
-
- public void doSomeOrdering() {
-
- OrderRequest oRequest = new OrderRequest();
-
- // … fill in the details of the order …
-
- System.out.println("client placing order: " + oRequest);
-
- orderService.placeOrder(oRequest);
-
- // …the client code can continue to do processing
- }
-
- public void placeOrderResponse(OrderResponse oResponse) {
-
- // …handle the response as needed
-
- System.out.println("client callback received order response: " + oResponse);
- OrderServiceClient.oResponse = oResponse;
- }
-
- // A setter method for the order service reference
- @Reference
- public void setOrderService(OrderService theService) {
- orderService = theService;
- }
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java
deleted file mode 100644
index dd963bc1b0..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/java/callbacks/OrderServiceImpl.java
+++ /dev/null
@@ -1,51 +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 callbacks;
-
-import org.osoa.sca.annotations.Callback;
-import org.osoa.sca.annotations.Service;
-
-@Service(OrderService.class)
-public class OrderServiceImpl implements OrderService {
-
- // A field for the callback reference object
- private OrderCallback callbackReference;
-
- // The place order operation itself
- public void placeOrder(OrderRequest oRequest) {
-
- // …do the work to process the order…
- // …which may take some time…
-
- System.out.println("service received order: " + oRequest);
-
- // when ready to respond…
-
- OrderResponse theResponse = new OrderResponse();
-
- callbackReference.placeOrderResponse(theResponse);
- }
-
- // A setter method for the callback reference
- @Callback
- public void setCallbackReference(OrderCallback theCallback) {
- callbackReference = theCallback;
- }
-}
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/callbacks.composite b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/callbacks.composite
deleted file mode 100644
index 94dd29c45d..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/callbacks.composite
+++ /dev/null
@@ -1,44 +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://sample"
- name="CallbacksComposite">
-
- <component name="ClientComponent">
- <implementation.java class="callbacks.OrderServiceClient" />
- <reference name="orderService" target="ServiceComponent/OrderService">
- <binding.jms uri="jms:OrderService"/>
- <callback>
- <binding.jms />
- </callback>
- </reference>
- </component>
-
- <component name="ServiceComponent">
- <implementation.java class="callbacks.OrderServiceImpl" />
- <service name="OrderService">
- <binding.jms />
- <callback>
- <binding.jms />
- </callback>
- </service>
- </component>
-
-</composite>
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/jndi.properties b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/jndi.properties
deleted file mode 100644
index 698aeb1711..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/main/resources/jndi.properties
+++ /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.
-## ---------------------------------------------------------------------------
-
-# START SNIPPET: jndi
-
-java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory
-
-# use the following property to configure the default connector
-java.naming.provider.url = vm://localhost?broker.persistent=false&broker.useJmx=false
-
-# use the following property to specify the JNDI name the connection factory should appear as.
-connectionFactoryNames = ConnectionFactory
-
-# register some queues in JNDI using the form
-# queue.[jndiName] = [physicalName]
-queue.OrderService = OrderServiceQueue
diff --git a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/test/java/callbacks/CallbacksTestCase.java b/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/test/java/callbacks/CallbacksTestCase.java
deleted file mode 100644
index 967fc42c64..0000000000
--- a/sca-java-1.x/tags/1.5.1-RC4/samples/callbacks-jms/src/test/java/callbacks/CallbacksTestCase.java
+++ /dev/null
@@ -1,64 +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 callbacks;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.sca.host.embedded.SCADomain;
-
-/**
- * This shows how to test the Calculator service component.
- */
-public class CallbacksTestCase extends TestCase {
-
- private OrderServiceClient orderServiceClient;
- private SCADomain scaDomain;
-
- @Override
- protected void setUp() throws Exception {
- scaDomain = SCADomain.newInstance("callbacks.composite");
- orderServiceClient = scaDomain.getService(OrderServiceClient.class, "ClientComponent");
- }
-
- @Override
- protected void tearDown() throws Exception {
- scaDomain.close();
- }
-
- public void testOderClient() throws Exception {
-
- orderServiceClient.doSomeOrdering();
-
- // wait to give the service time to respond
- Thread.sleep(500);
- }
-
- public static void main(String[] args) {
- try {
-
- CallbacksTestCase runner = new CallbacksTestCase();
- runner.setUp();
- runner.testOderClient();
- runner.tearDown();
-
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-}