tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmar...@apache.org
Subject svn commit: r509892 - in /incubator/tuscany/java/sca/core-samples/standalone/loanapplication: ./ src/main/java/loanapplication/client/ src/main/java/loanapplication/client/impl/ src/main/java/loanapplication/message/ src/main/java/loanapplication/provi...
Date Wed, 21 Feb 2007 04:43:46 GMT
Author: jmarino
Date: Tue Feb 20 20:43:45 2007
New Revision: 509892

URL: http://svn.apache.org/viewvc?view=rev&rev=509892
Log:
finish up conversational callback sample

Added:
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java
  (with props)
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java
  (with props)
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java
  (with props)
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java
  (with props)
Modified:
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/readme.html
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/message/Application.java
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/CreditService.java
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanService.java
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanServiceCallback.java
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/CreditServiceImpl.java
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/LoanServiceImpl.java
    incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/resources/META-INF/sca/default.scdl

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/readme.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/readme.html?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/readme.html (original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/readme.html Tue Feb
20 20:43:45 2007
@@ -24,23 +24,22 @@
   "text/html; charset=us-ascii">
   <meta http-equiv="Content-Style-Type" content="text/css">
 
-  <title>Tuscany Loan Application Asynchronous and Conversational Services Sample</title>
+  <title>Tuscany Loan Application Conversational and Callback Services Sample</title>
   <!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
   <link rel="stylesheet" href="../../css/base.css" type="text/css">
 </head>
 
 <body>
-  <h3>Tuscany Loan Application Asynchronous and Conversational Services Sample</h3>
+  <h3>Tuscany Loan Application Conversational and Callback Services Sample</h3>
 
   <h4>Overview</h4>
 
-  <p>This sample illustrates the use of asynchronous and conversational services in
Tuscany.</p>
+  <p>This sample illustrates the use of conversational services and callbacks in Tuscany.</p>
 
   <h4>Location</h4>
 
-  <p>This sample is located &nbsp;in the
-  samples\standalone\loanapplication directory. All the
-  following commands should be issued while working in the sample
+  <p>The sample is located &nbsp;in the
+  samples\standalone\loanapplication directory. All commands should be issued while working
in the sample
   directory.</p>
 
   <h4>Prerequisites</h4>
@@ -65,24 +64,18 @@
 
   <p>The result after executing is in the <span style=
   "font-weight: bold;">target</span> subdirectory the <span style=
-  "font-weight: bold;">sample-calculator.jar</span></p>
+  "font-weight: bold;">loan-application.jar</span></p>
 
-  <h4>Setup</h4>
+  <h4>Running</h4>
 
-  <p>Set up the Tuscany standalone runtime environment using the
+  <p>Boot the Tuscany standalone runtime environment using the
   following command:</p>
   <pre>
-<code>mvn dependency:unpack <br></code>
+<code>java -jar {path-to-launcher.jar} target/loan-application.jar <br></code>
 </pre>
 
-  <p>After completion there should be a <span style=
-  "font-weight: bold;">target\distribution</span> subdirectory
-  created that has the Tuscany standalone runtime.</p>
-
-  <h4>Running</h4>
+  <p>where {path-to-launcher.jar} is the path to the Tuscany launcher jar </p>
 
-  <p>Execute the following command: (<span style=
-  "font-style: italic;">cut and paste to command line</span>)</p>
   <pre>
 <code></code>
 </pre>

Added: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java?view=auto&rev=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java
(added)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java
Tue Feb 20 20:43:45 2007
@@ -0,0 +1,10 @@
+package loanapplication.client;
+
+/**
+ * Interacts with the {@link loanapplication.provider.LoanService}, initiating a loan application
process that
+ * demonstrates the use of conversational services and callbacks
+ */
+public interface ClientService {
+
+
+}

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/ClientService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java?view=auto&rev=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java
(added)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java
Tue Feb 20 20:43:45 2007
@@ -0,0 +1,67 @@
+package loanapplication.client.impl;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Scope;
+import org.osoa.sca.annotations.Service;
+
+import loanapplication.client.ClientService;
+import loanapplication.message.Application;
+import loanapplication.message.LoanPackage;
+import loanapplication.message.impl.ApplicationImpl;
+import loanapplication.provider.LoanService;
+import loanapplication.provider.LoanServiceCallback;
+
+/**
+ * Demonstrates a client to the conversational loan service that receives a set of callbacks.
This component
+ * implementation is configured as a Tuscany "launched" component type. The standalone launcher
will invoke  {@link
+ * #main(String[])} when the application is started.
+ */
+@Service(ClientService.class)
+@Scope("COMPOSITE")
+public class ClientServiceImpl implements LoanServiceCallback {
+    private LoanService loanService;
+
+    /**
+     * Instantiates a new client with a reference to the loan service
+     *
+     * @param loanService the loan service
+     */
+    public ClientServiceImpl(@Reference(name = "loanService")LoanService loanService) {
+        this.loanService = loanService;
+    }
+
+    /**
+     * The method invoked to initiate a new application process.
+     *
+     * @param args startup parameters
+     * @return the return code
+     */
+    public int main(String[] args) {
+        System.out.println("Client applying for loan");
+        Application app = new ApplicationImpl();
+        app.setCustomerID("12345");
+        app.setAmount(100000);
+        app.setTerm(30);
+        app.setType(Application.FIXED);
+        loanService.apply(app);
+        return 1;
+    }
+
+    public void creditScoreResult(int code) {
+        System.out.println("Callback: credit score was " + code);
+    }
+
+    public void applicationResult(int code) {
+        if (code == APPROVED) {
+            System.out.println("Callback: the loan has been approved");
+            System.out.println("Client securing loan");
+            loanService.secureLoan();
+        } else {
+            System.out.println("Callback:, the loan has been declined");
+        }
+    }
+
+    public void loanPackage(LoanPackage loanPackage) {
+        System.out.println("Callback: loan package received");
+    }
+}

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/client/impl/ClientServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/message/Application.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/message/Application.java?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/message/Application.java
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/message/Application.java
Tue Feb 20 20:43:45 2007
@@ -19,9 +19,11 @@
 package loanapplication.message;
 
 /**
- * Represents a loan application
+ * A loan application
  */
 public interface Application {
+    int FIXED = 1;
+    int FIVE_YEAR_VARIABLE = 2;
 
     String getCustomerID();
 

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/CreditService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/CreditService.java?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/CreditService.java
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/CreditService.java
Tue Feb 20 20:43:45 2007
@@ -24,11 +24,11 @@
 public interface CreditService {
 
     /**
-     * Returns the customer credit rating
+     * Returns the customer credit score
      *
      * @param customerID the customer ID
      * @return the credit score
      */
-    int getCreditRating(String customerID);
+    int getCreditScore(String customerID);
 
 }

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanService.java?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanService.java
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanService.java
Tue Feb 20 20:43:45 2007
@@ -21,7 +21,6 @@
 import org.osoa.sca.annotations.Callback;
 import org.osoa.sca.annotations.Conversational;
 import org.osoa.sca.annotations.EndConversation;
-import org.osoa.sca.annotations.OneWay;
 
 import loanapplication.message.Application;
 
@@ -33,18 +32,23 @@
 public interface LoanService {
 
     /**
-     * Submits a new loan application
+     * Submits a new loan application. Calling this method will start a new conversation
if one has not been previously
+     * initiated.
      *
      * @param application the loan application
      */
-    @OneWay
     void apply(Application application);
 
-    @OneWay
+    /**
+     * Called after the loan has been approved and when the client is read to complete the
process. Calling this method
+     * will end the conversation.
+     */
     @EndConversation
     void secureLoan();
 
-    @OneWay
+    /**
+     * Called to cancel a loan application. Calling this method will end the conversation.
+     */
     @EndConversation
     void cancel();
 

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanServiceCallback.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanServiceCallback.java?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanServiceCallback.java
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/LoanServiceCallback.java
Tue Feb 20 20:43:45 2007
@@ -18,8 +18,6 @@
  */
 package loanapplication.provider;
 
-import org.osoa.sca.annotations.OneWay;
-
 import loanapplication.message.LoanPackage;
 
 /**
@@ -29,13 +27,25 @@
     int APPROVED = 1;
     int DECLINED = -1;
 
-    @OneWay
-    void creditResult(int code);
+    /**
+     * Called when the customer's credit score is received from the credit check process.
+     *
+     * @param code the customer's credit score.
+     */
+    void creditScoreResult(int code);
 
-    @OneWay
+    /**
+     * Called to the loan has been {@link LoanServiceCallback#APPROVED} or {@link LoanServiceCallback#DECLINED}.
+     *
+     * @param code if the loan application was approved or declined.
+     */
     void applicationResult(int code);
 
-    @OneWay
+    /**
+     * Called after the loan has been secured to provide the completed loan information.
+     *
+     * @param loanPackage the loan information.
+     */
     void loanPackage(LoanPackage loanPackage);
 
 }

Added: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java?view=auto&rev=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java
(added)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java
Tue Feb 20 20:43:45 2007
@@ -0,0 +1,28 @@
+/*
+ * 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 loanapplication.provider;
+
+/**
+ *
+ */
+public interface RateService {
+
+    float getRate(int type);
+
+}

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/RateService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/CreditServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/CreditServiceImpl.java?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/CreditServiceImpl.java
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/CreditServiceImpl.java
Tue Feb 20 20:43:45 2007
@@ -21,11 +21,12 @@
 import loanapplication.provider.CreditService;
 
 /**
- *
+ * The credit service implementation
  */
 public class CreditServiceImpl implements CreditService {
 
-    public int getCreditRating(String customerID) {
+    public int getCreditScore(String customerID) {
+        System.out.println("Credit Service: Performing credit check");
         return 700;
     }
 }

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/LoanServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/LoanServiceImpl.java?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/LoanServiceImpl.java
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/LoanServiceImpl.java
Tue Feb 20 20:43:45 2007
@@ -18,36 +18,49 @@
  */
 package loanapplication.provider.impl;
 
-import static loanapplication.provider.LoanServiceCallback.DECLINED;
-import static loanapplication.provider.LoanServiceCallback.APPROVED;
-
+import java.io.Serializable;
 import java.util.UUID;
 
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.OneWay;
 import org.osoa.sca.annotations.Callback;
 import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Scope;
 import org.osoa.sca.annotations.Service;
 
+import loanapplication.message.Application;
+import loanapplication.provider.CreditService;
 import loanapplication.provider.LoanService;
 import loanapplication.provider.LoanServiceCallback;
-import loanapplication.provider.CreditService;
-import loanapplication.message.Application;
+import loanapplication.provider.RateService;
 
 /**
  * The loan service implementation
  */
 @Scope("CONVERSATION")
-@Service(LoanService.class)    // allow introspection of single interface
-public class LoanServiceImpl implements LoanService {
+public class LoanServiceImpl implements LoanService, Serializable {
+    private static final long serialVersionUID = 7801583139613235069L;
+    // the loan number, demonstrates the use of conversational state
     private String loanNumber;
     private CreditService creditService;
+    private RateService rateService;
     private LoanServiceCallback callback;
 
-    public LoanServiceImpl(@Reference(name = "creditService") CreditService creditService)
{
+    /**
+     * Instantiates a new component instance, passing in references to the credit and rate
services
+     *
+     * @param creditService the credit service
+     * @param rateService   the rate service
+     */
+    public LoanServiceImpl(@Reference(name = "creditService")CreditService creditService,
+                           @Reference(name = "rateService")RateService rateService) {
         this.creditService = creditService;
+        this.rateService = rateService;
     }
 
+    /**
+     * A setter method for injecting the client callback reference. The reference will be
injected by the runtime
+     *
+     * @param callback the client callback reference
+     */
     @Callback
     public void setCallback(LoanServiceCallback callback) {
         this.callback = callback;
@@ -55,23 +68,35 @@
 
     public void apply(Application application) {
         String id = application.getCustomerID();
-        System.out.println("Application received: "+ id);
         loanNumber = UUID.randomUUID().toString();
-        int rating = creditService.getCreditRating(id);
-        if (rating > 500){
-            callback.creditResult(APPROVED);
+        System.out.println("---------------------------------------------------------------------");
+        System.out.println("Application received for customer");
+        System.out.println("Assigned loan number: " + loanNumber);
+        System.out.println("---------------------------------------------------------------------");
+        int rating = creditService.getCreditScore(id);
+        if (rating > 500) {
+            // approve the loan
+            callback.creditScoreResult(rating);
+            rateService.getRate(application.getType());
+            callback.applicationResult(LoanServiceCallback.APPROVED);
         } else {
-            callback.creditResult(DECLINED);
+            // reject the loan
+            callback.creditScoreResult(rating);
+            callback.applicationResult(LoanServiceCallback.DECLINED);
         }
     }
 
-    @OneWay
     public void secureLoan() {
-        System.out.println("Loan secured: "+ loanNumber);
+        System.out.println("---------------------------------------------------------------------");
+        System.out.println("Loan secured");
+        System.out.println("Loan number: " + loanNumber);
+        System.out.println("---------------------------------------------------------------------");
     }
 
-    @OneWay
     public void cancel() {
-        System.out.println("Loan cancelled: "+ loanNumber);
+        System.out.println("---------------------------------------------------------------------");
+        System.out.println("Loan cancelled");
+        System.out.println("Loan number: " + loanNumber);
+        System.out.println("---------------------------------------------------------------------");
     }
 }

Added: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java?view=auto&rev=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java
(added)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java
Tue Feb 20 20:43:45 2007
@@ -0,0 +1,38 @@
+/*
+ * 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 loanapplication.provider.impl;
+
+import loanapplication.message.Application;
+import loanapplication.provider.RateService;
+
+/**
+ * The rate service implementation
+ */
+public class RateServiceImpl implements RateService {
+
+    public float getRate(int type) {
+        System.out.println("Rate Service: Calculating rate");
+        if (type == Application.FIVE_YEAR_VARIABLE) {
+            return 6.0f;
+        } else {
+            return 6.5f;
+        }
+    }
+
+}

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/java/loanapplication/provider/impl/RateServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/resources/META-INF/sca/default.scdl?view=diff&rev=509892&r1=509891&r2=509892
==============================================================================
--- incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/resources/META-INF/sca/default.scdl
(original)
+++ incubator/tuscany/java/sca/core-samples/standalone/loanapplication/src/main/resources/META-INF/sca/default.scdl
Tue Feb 20 20:43:45 2007
@@ -17,15 +17,27 @@
  * specific language governing permissions and limitations
  * under the License.    
 -->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="LoanApplication">
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:launched="http://tuscany.apache.org/xmlns/sca/1.0"
+           name="LoanApplication">
+
+    <component name="LoanClient">
+        <launched:launched class="loanapplication.client.impl.ClientServiceImpl"/>
+        <reference name="loanService">LoanService</reference>
+    </component>
 
     <component name="LoanService">
         <implementation.java class="loanapplication.provider.impl.LoanServiceImpl"/>
         <reference name="creditService">CreditService</reference>
+        <reference name="rateService">RateService</reference>
     </component>
-    
+
     <component name="CreditService">
         <implementation.java class="loanapplication.provider.impl.CreditServiceImpl"/>
     </component>
-    
+
+    <component name="RateService">
+        <implementation.java class="loanapplication.provider.impl.RateServiceImpl"/>
+    </component>
+
 </composite>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message