summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2008-12-05 07:18:33 +0000
committerramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68>2008-12-05 07:18:33 +0000
commit9b963effd210cb96af111c9d51c6f8345a284364 (patch)
tree67449f930cf729f3cea6ac2825ca760a18ad7a61 /branches
parent08397efe882a0dbf65d074e261e1612506538006 (diff)
fixes for TUSCANY-2717
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@723632 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/samples/callbacks-jms/build.xml4
-rw-r--r--branches/sca-java-1.x/samples/callbacks-jms/pom.xml2
-rw-r--r--branches/sca-java-1.x/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java26
3 files changed, 29 insertions, 3 deletions
diff --git a/branches/sca-java-1.x/samples/callbacks-jms/build.xml b/branches/sca-java-1.x/samples/callbacks-jms/build.xml
index 665feeca71..bc2c191fc2 100644
--- a/branches/sca-java-1.x/samples/callbacks-jms/build.xml
+++ b/branches/sca-java-1.x/samples/callbacks-jms/build.xml
@@ -16,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
-->
-<project name="calculator" default="compile">
- <property name="test.class" value="callbacks.CallbacksTestCase" />
+<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">
diff --git a/branches/sca-java-1.x/samples/callbacks-jms/pom.xml b/branches/sca-java-1.x/samples/callbacks-jms/pom.xml
index 95508d6fad..1cda0a8aa8 100644
--- a/branches/sca-java-1.x/samples/callbacks-jms/pom.xml
+++ b/branches/sca-java-1.x/samples/callbacks-jms/pom.xml
@@ -26,7 +26,7 @@
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>sample-callbacks-jms</artifactId>
- <name>Apache Tuscany SCA Callbacks with JMS Sample</name>
+ <name>Apache Tuscany SCA Sample Callbacks with JMS</name>
<repositories>
<repository>
diff --git a/branches/sca-java-1.x/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java b/branches/sca-java-1.x/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java
new file mode 100644
index 0000000000..a08d336180
--- /dev/null
+++ b/branches/sca-java-1.x/samples/callbacks-jms/src/main/java/callbacks/CallbackJMSClient.java
@@ -0,0 +1,26 @@
+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();
+ }
+
+}