summaryrefslogtreecommitdiffstats
path: root/branches/sca-android/samples/simple-bigbank-spring/src
diff options
context:
space:
mode:
Diffstat (limited to 'branches/sca-android/samples/simple-bigbank-spring/src')
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountReport.java43
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountService.java26
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java145
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountDetails.java45
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountService.java34
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/feed/AccountFeedImpl.java71
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountDetails.java47
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountService.java32
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java62
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountDetails.java63
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountService.java33
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java56
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/calculator/CalculatorService.java34
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java46
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/server/BigBankServer.java54
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/stockquote/StockQuoteService.java31
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/BigBank.composite88
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/SavingsAccount.composite32
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/StockAccount.composite32
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml53
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/SavingsAccount-context.xml33
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/MANIFEST.MF4
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/spring/StockAccount-context.xml33
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/main/resources/web/style.css22
-rw-r--r--branches/sca-android/samples/simple-bigbank-spring/src/test/java/bigbank/BigBankTestCase.java34
25 files changed, 0 insertions, 1153 deletions
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountReport.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountReport.java
deleted file mode 100644
index 1625ff5b65..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountReport.java
+++ /dev/null
@@ -1,43 +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 bigbank.account;
-
-import java.util.List;
-
-/**
- */
-public class AccountReport {
- private List<String> summaries;
- private String currency;
-
- public AccountReport(String currency, List<String> summaries) {
- this.currency = currency;
- this.summaries = summaries;
- }
-
- public List getAccountSummaries() { return summaries; }
-
- public String getCurrency() { return currency; }
-
- @Override
- public String toString() {
- return "currency: "+ currency + ", " + summaries;
- }
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountService.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountService.java
deleted file mode 100644
index 7c9082b944..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountService.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 bigbank.account;
-
-/**
- * Interface for a account service
- */
-public interface AccountService {
- public AccountReport getAccountReport(String customerID);
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
deleted file mode 100644
index ce41006fa6..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/AccountServiceImpl.java
+++ /dev/null
@@ -1,145 +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 bigbank.account;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.osoa.sca.annotations.Service;
-
-import bigbank.account.checking.CheckingAccountDetails;
-import bigbank.account.checking.CheckingAccountService;
-import bigbank.account.savings.SavingsAccountDetails;
-import bigbank.account.savings.SavingsAccountService;
-import bigbank.account.stock.StockAccountDetails;
-import bigbank.account.stock.StockAccountService;
-import bigbank.stockquote.StockQuoteService;
-import bigbank.calculator.CalculatorService;
-
-/**
- * Account service implementation
- */
-@Service(AccountService.class)
-public class AccountServiceImpl implements AccountService {
-
- private SavingsAccountService savingsAccountService;
-
- private CheckingAccountService checkingAccountService;
-
- private StockAccountService stockAccountService;
-
- private CalculatorService calculatorService;
-
- private StockQuoteService stockQuoteService;
-
- private String currency;
-
- public AccountReport getAccountReport(String customerID) {
-
- // Get the checking, savings and stock accounts from the AccountData
- // service component
- CheckingAccountDetails checking = null;
- List<String> summaries = new ArrayList<String>();
- try {
- checking = checkingAccountService.getAccountDetails(customerID);
- System.out.println("Checking account: " + checking);
- summaries.add(checking.toString());
-
- SavingsAccountDetails savings = savingsAccountService.getAccountDetails(customerID);
- System.out.println("Savings account: " + savings);
- summaries.add(savings.toString());
-
- StockAccountDetails stock = stockAccountService.getAccountDetails(customerID);
- System.out.println("Stock account: " + stock);
- summaries.add(stock.toString());
-
- // Get the stock price in USD
- double price = stockQuoteService.getQuote(stock.getSymbol());
- System.out.println("Stock price for " + stock.getSymbol() + ": " + price);
-
- // Convert to the configured currency
- if (currency.equals("EURO")) {
-
- // Use our fancy calculator service to convert to the target currency
- price = calculatorService.multiply(price, 0.70);
-
- System.out.println("Converted to " + currency + ": " + price);
- }
-
- // Calculate the value of the stock account
- double stockValue = price * stock.getQuantity();
- summaries.add(stock.toString());
-
- AccountReport report = new AccountReport(currency, summaries);
-
- return report;
- } catch ( Throwable e ) {
- e.printStackTrace();
- return null;
- }
- }
-
- public SavingsAccountService getSavingsAccountService() {
- return savingsAccountService;
- }
-
- public void setSavingsAccountService(SavingsAccountService savingsAccountService) {
- this.savingsAccountService = savingsAccountService;
- }
-
- public CheckingAccountService getCheckingAccountService() {
- return checkingAccountService;
- }
-
- public void setCheckingAccountService(CheckingAccountService checkingAccountService) {
- this.checkingAccountService = checkingAccountService;
- }
-
- public StockAccountService getStockAccountService() {
- return stockAccountService;
- }
-
- public void setStockAccountService(StockAccountService stockAccountService) {
- this.stockAccountService = stockAccountService;
- }
-
- public String getCurrency() {
- return currency;
- }
-
- public void setCurrency(String currency) {
- this.currency = currency;
- }
-
- public CalculatorService getCalculatorService() {
- return calculatorService;
- }
-
- public void setCalculatorService(CalculatorService calculatorService) {
- this.calculatorService = calculatorService;
- }
-
- public StockQuoteService getStockQuoteService() {
- return stockQuoteService;
- }
-
- public void setStockQuoteService(StockQuoteService stockQuoteService) {
- this.stockQuoteService = stockQuoteService;
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountDetails.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountDetails.java
deleted file mode 100644
index 3f81f48fb9..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountDetails.java
+++ /dev/null
@@ -1,45 +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 bigbank.account.checking;
-
-public class CheckingAccountDetails {
- private String accountNumber;
- private double balance;
-
- public String getAccountNumber() {
- return accountNumber;
- }
-
- public void setAccountNumber(String n) {
- this.accountNumber = n;
- }
-
- public double getBalance() {
- return balance;
- }
-
- public void setBalance(double b) {
- this.balance = b;
- }
-
- @Override
- public String toString() {
- return accountNumber + ", balance:" + balance;
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountService.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountService.java
deleted file mode 100644
index 2b52909bc1..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/checking/CheckingAccountService.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 bigbank.account.checking;
-
-import org.osoa.sca.annotations.Remotable;
-import org.osoa.sca.annotations.Service;
-
-@Service
-@Remotable
-public interface CheckingAccountService {
-
- public CheckingAccountDetails getAccountDetails(String customerID);
-
- public double deposit(String accountNo, double depositAmt);
-
- public double withdraw(String accountNo, double withdrawalAmount);
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/feed/AccountFeedImpl.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/feed/AccountFeedImpl.java
deleted file mode 100644
index 386f7bb90d..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/feed/AccountFeedImpl.java
+++ /dev/null
@@ -1,71 +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 bigbank.account.feed;
-
-import org.apache.tuscany.sca.data.collection.Collection;
-import org.apache.tuscany.sca.data.collection.Entry;
-import org.apache.tuscany.sca.data.collection.NotFoundException;
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-import bigbank.account.AccountService;
-import bigbank.account.AccountReport;
-
-/**
- * @version $$Rev$$ $$Date$$
- */
-
-@Service(Collection.class)
-public class AccountFeedImpl implements Collection<String, String> {
-
- @Reference
- protected AccountService accountService;
-
- public Entry<String, String>[] getAll() {
-
- // Add the Account report entry
- String report = get("1234");
- Entry<String, String> entry = new Entry<String, String>("1234", report);
-
- return new Entry[] { entry } ;
- }
-
- public String get(String id) {
-
- // Get the account report for the specified customer ID
- AccountReport accreport = accountService.getAccountReport(id);
- String report = accreport.getCurrency();
-
- return report;
- }
-
- public void delete(String key) throws NotFoundException {
- }
-
- public String post(String key, String item) {
- return null;
- }
-
- public void put(String key, String item) throws NotFoundException {
- }
-
- public Entry<String, String>[] query(String queryString) {
- return null;
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountDetails.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountDetails.java
deleted file mode 100644
index bcac678cd7..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountDetails.java
+++ /dev/null
@@ -1,47 +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 bigbank.account.savings;
-
-import java.io.Serializable;
-
-public class SavingsAccountDetails implements Serializable {
- private String accountNumber;
- private double balance;
-
- public String getAccountNumber() {
- return accountNumber;
- }
-
- public void setAccountNumber(String n) {
- this.accountNumber = n;
- }
-
- public double getBalance() {
- return balance;
- }
-
- public void setBalance(double b) {
- this.balance = b;
- }
-
- @Override
- public String toString() {
- return accountNumber + ", balance:" + balance;
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountService.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountService.java
deleted file mode 100644
index 8a012c12f9..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountService.java
+++ /dev/null
@@ -1,32 +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 bigbank.account.savings;
-
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface SavingsAccountService {
-
- public SavingsAccountDetails getAccountDetails(String customerID);
-
- public double deposit(String accountNo, double depositAmt);
-
- public double withdraw(String accountNo, double withdrawalAmount);
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java
deleted file mode 100644
index 980ec1c335..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/savings/SavingsAccountServiceImpl.java
+++ /dev/null
@@ -1,62 +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 bigbank.account.savings;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.osoa.sca.annotations.Service;
-
-@Service(SavingsAccountService.class)
-public class SavingsAccountServiceImpl implements SavingsAccountService {
- private Map<String, String> custAcctMap = new HashMap<String, String>();
- private Map<String, Double> savingsAccts = new HashMap<String, Double>();
-
- public SavingsAccountServiceImpl() {
- custAcctMap.put("Customer_01", "SVA_Customer_01");
- custAcctMap.put("Customer_02", "SVA_Customer_02");
- custAcctMap.put("Customer_03", "SVA_Customer_03");
-
- savingsAccts.put("SVA_Customer_01", new Double(1000));
- savingsAccts.put("SVA_Customer_02", new Double(1500));
- savingsAccts.put("SVA_Customer_03", new Double(2000));
- }
-
- public double deposit(String accountNo, double depositAmt) {
- savingsAccts.put(accountNo, new Double(savingsAccts.get(accountNo).doubleValue() + depositAmt));
- return savingsAccts.get(accountNo).doubleValue();
- }
-
- public SavingsAccountDetails getAccountDetails(String customerID) {
- SavingsAccountDetails savingsAccount = new SavingsAccountDetails();
- savingsAccount.setAccountNumber(custAcctMap.get(customerID));
- savingsAccount.setBalance(savingsAccts.get(savingsAccount.getAccountNumber()).doubleValue());
-
- return savingsAccount;
- }
-
- public double withdraw(String accountNo, double withdrawalAmount) {
- double balance = savingsAccts.get(accountNo).doubleValue();
- if ( balance - withdrawalAmount > 0 ) {
- balance = balance - withdrawalAmount;
- savingsAccts.put(accountNo, balance);
- }
- return balance;
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountDetails.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountDetails.java
deleted file mode 100644
index 9f06a71bae..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountDetails.java
+++ /dev/null
@@ -1,63 +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 bigbank.account.stock;
-
-public class StockAccountDetails {
- private String accountNumber;
- private String symbol;
- private int quantity;
-
- public StockAccountDetails() {
- }
-
- public StockAccountDetails(String acNo, String symbol, int qty) {
- this.accountNumber = acNo;
- this.symbol = symbol;
- this.quantity = qty;
- }
-
- public String getAccountNumber() {
- return accountNumber;
- }
-
- public void setAccountNumber(String n) {
- this.accountNumber = n;
- }
-
- public int getQuantity() {
- return quantity;
- }
-
- public void setQuantity(int a) {
- this.quantity = a;
- }
-
- public String getSymbol() {
- return symbol;
- }
-
- public void setSymbol(String s) {
- this.symbol = s;
- }
-
- @Override
- public String toString() {
- return accountNumber + ", symbol:" + symbol + ", quantity:" + quantity;
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountService.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountService.java
deleted file mode 100644
index 1ee386ba90..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountService.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 bigbank.account.stock;
-
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface StockAccountService {
-
- public StockAccountDetails getAccountDetails(String customerID);
-
- public StockAccountDetails buy(String accountNo, String symbol, int quantity);
-
- public StockAccountDetails sell(String accountNo, String symbol, int quantity);
-
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java
deleted file mode 100644
index 61aea6869e..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/account/stock/StockAccountServiceImpl.java
+++ /dev/null
@@ -1,56 +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 bigbank.account.stock;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.osoa.sca.annotations.Service;
-
-@Service(StockAccountService.class)
-public class StockAccountServiceImpl implements StockAccountService {
- private Map<String, String> custAcctMap = new HashMap<String, String>();
- private Map<String, StockAccountDetails> stockAccts = new HashMap<String, StockAccountDetails>();
-
- public StockAccountServiceImpl() {
- custAcctMap.put("Customer_01", "STA_Customer_01");
- custAcctMap.put("Customer_02", "STA_Customer_02");
- custAcctMap.put("Customer_03", "STA_Customer_03");
-
- stockAccts.put("STA_Customer_01", new StockAccountDetails("STA_Customer_01", "IBM", 100));
- stockAccts.put("STA_Customer_02", new StockAccountDetails("STA_Customer_02", "IBM", 200));
- stockAccts.put("STA_Customer_03", new StockAccountDetails("STA_Customer_03", "SYM_3", 125));
- }
-
-
- public StockAccountDetails buy(String accountNo, String symbol, int quantity) {
- return null;
- }
-
- public StockAccountDetails getAccountDetails(String customerID) {
- return stockAccts.get(custAcctMap.get(customerID));
- }
-
- public StockAccountDetails sell(String accountNo, String symbol, int quantity) {
- return null;
- }
-
-
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/calculator/CalculatorService.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/calculator/CalculatorService.java
deleted file mode 100644
index 66a0ba0e63..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/calculator/CalculatorService.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 bigbank.calculator;
-
-/**
- * The Calculator service interface.
- */
-public interface CalculatorService {
-
- double add(double n1, double n2);
-
- double subtract(double n1, double n2);
-
- double multiply(double n1, double n2);
-
- double divide(double n1, double n2);
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java
deleted file mode 100644
index f7b940f873..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.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 bigbank.client;
-
-import org.apache.tuscany.sca.node.SCAClient;
-import org.apache.tuscany.sca.node.SCANode;
-import org.apache.tuscany.sca.node.SCANodeFactory;
-
-import bigbank.account.AccountService;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * and locate and invoke a SCA component
- */
-public class BigBankClient {
- public static void main(String[] args) throws Exception {
-
- SCANodeFactory factory = SCANodeFactory.newInstance();
- SCANode node = factory.createSCANodeFromClassLoader("BigBank.composite", BigBankClient.class.getClassLoader());
- node.start();
-
- AccountService accountService = ((SCAClient)node).getService(AccountService.class, "AccountServiceComponent");
-
- System.out.println("Account summary: " + accountService.getAccountReport("Customer_01") );
-
- node.stop();
- }
-
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/server/BigBankServer.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/server/BigBankServer.java
deleted file mode 100644
index 241347e417..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/server/BigBankServer.java
+++ /dev/null
@@ -1,54 +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 bigbank.server;
-
-import org.apache.tuscany.sca.node.SCANode;
-import org.apache.tuscany.sca.node.SCANodeFactory;
-
-/**
- * This client program shows how to create an SCA runtime, start it,
- * and locate and invoke a SCA component
- */
-public class BigBankServer {
-
- public static void main(String[] args) throws Exception {
- long timeout = -1L;
- if (args.length > 0) {
- timeout = Long.parseLong(args[0]);
- }
-
- System.out.println("Starting the Sample SCA Spring BigBank server...");
-
- SCANodeFactory factory = SCANodeFactory.newInstance();
- SCANode node = factory.createSCANodeFromClassLoader("BigBank.composite", BigBankServer.class.getClassLoader());
- node.start();
-
- if (timeout < 0) {
- System.out.println("Press Enter to Exit...");
- System.in.read();
- } else {
- Thread.sleep(timeout);
- }
-
- node.stop();
-
- System.out.println("Bye");
- }
-}
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/stockquote/StockQuoteService.java b/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/stockquote/StockQuoteService.java
deleted file mode 100644
index 2d97b57066..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/java/bigbank/stockquote/StockQuoteService.java
+++ /dev/null
@@ -1,31 +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 bigbank.stockquote;
-
-import org.osoa.sca.annotations.Remotable;
-
-/**
- * This is the business interface of the StockQuote service.
- */
-@Remotable
-public interface StockQuoteService {
-
- public double getQuote(String symbol);
-}
-
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/BigBank.composite b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/BigBank.composite
deleted file mode 100644
index ea2dbc7e1c..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/BigBank.composite
+++ /dev/null
@@ -1,88 +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"
- xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://bigbank"
- xmlns:bb="http://bigbank"
- xmlns:bbsv="http://bigbank/savings"
- xmlns:bbst="http://bigbank/stock"
- xmlns:bbck="http://bigbank/checkings"
- xmlns:s="http://stockquote"
- name="BigBank">
-
- <component name="AccountServiceComponent">
- <implementation.spring location="spring-context/Account-spring-context.xml"/>
-
- <service name="AccountService">
- <interface.java interface="bigbank.account.AccountService"/>
- <tuscany:binding.jsonrpc uri="http://localhost:8085/SpringAccountJSONService"/>
- <binding.sca/>
- </service>
-
- <reference name="savingsAccountService" target="SavingsAccountServiceComponent"/>
-
- <reference name="checkingAccountService">
- <interface.java interface="bigbank.account.checking.CheckingAccountService"/>
- <binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory"
- jndiURL="tcp://localhost:61619">
- <destination name="RequestQueue" create="always"/>
- <response>
- <destination name="ResponseQueue" create="always"/>
- </response>
- </binding.jms>
- </reference>
-
- <reference name="stockAccountService" target="StockAccountServiceComponent"/>
-
- <reference name="calculatorService">
- <tuscany:binding.rmi host="localhost" port="8099" serviceName="CalculatorRMIService"/>
- </reference>
-
- <reference name="stockQuoteService">
- <binding.ws uri="http://localhost:8081/services/StockQuoteWebService"/>
- </reference>
- </component>
-
- <component name="SavingsAccountServiceComponent">
- <implementation.composite name="bbsv:SavingsAccountDept"/>
- </component>
-
- <component name="StockAccountServiceComponent">
- <implementation.composite name="bbst:StockAccountDept"/>
- </component>
-
- <component name="AccountFeedComponent">
- <implementation.java class="bigbank.account.feed.AccountFeedImpl"/>
- <service name="Collection">
- <tuscany:binding.rss uri="http://localhost:8085/rss"/>
- <tuscany:binding.atom uri="http://localhost:8085/atom"/>
- </service>
- <reference name="accountService" target="AccountServiceComponent"/>
- </component>
-
- <component name="WebResourceComponent">
- <tuscany:implementation.resource location="web"/>
- <service name="Resource">
- <tuscany:binding.http uri="http://localhost:8085/"/>
- </service>
- </component>
-
-</composite>
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/SavingsAccount.composite b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/SavingsAccount.composite
deleted file mode 100644
index 4bb2ce61ef..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/SavingsAccount.composite
+++ /dev/null
@@ -1,32 +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://bigbank/savings"
- xmlns:bbsv="http://bigbank/savings"
- xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
- name="SavingsAccountDept">
-
- <service name="SavingsAccountService" promote="SavingsAccountServiceComponent"/>
-
- <component name="SavingsAccountServiceComponent">
- <implementation.spring location="spring-context/SavingsAccount-context.xml"/>
- </component>
-
-</composite>
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/StockAccount.composite b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/StockAccount.composite
deleted file mode 100644
index 97dff499ba..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/StockAccount.composite
+++ /dev/null
@@ -1,32 +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://bigbank/stock"
- xmlns:bbst="http://bigbank/stock"
- xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
- name="StockAccountDept">
-
- <service name="StockAccountService" promote="StockAccountServiceComponent"/>
-
- <component name="StockAccountServiceComponent">
- <implementation.spring location="spring-context/StockAccount"/>
- </component>
-
-</composite>
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
deleted file mode 100644
index 899d8d7d62..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/Account-spring-context.xml
+++ /dev/null
@@ -1,53 +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.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:sca="http://www.springframework.org/schema/sca"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/sca http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd">
-
- <!-- <sca:service name="AccountService"
- type="bigbank.account.AccountService" target="AccountServiceBean"/> -->
-
- <bean id="AccountServiceBean" class="bigbank.account.AccountServiceImpl">
- <property name="calculatorService" ref="calculatorService"/>
- <property name="stockQuoteService" ref="stockQuoteService"/>
- <property name="checkingAccountService" ref="checkingAccountService"/>
-
- <!-- Here are some implicit references & properties - a property with a ref not satisifed
- * within the Spring application context.
- -->
- <property name="savingsAccountService" ref="savingsAccountService"/>
- <property name="stockAccountService" ref="stockAccountService"/>
- <property name="currency" value="EURO"/>
- </bean>
-
- <sca:reference name="checkingAccountService" type="bigbank.account.checking.CheckingAccountService"/>
-
- <sca:reference name="calculatorService" type="bigbank.calculator.CalculatorService"/>
-
- <sca:reference name="stockQuoteService" type="bigbank.stockquote.StockQuoteService"/>
-
- <!-- <sca:reference name="savingsAccountServiceRef" type="bigbank.account.savings.SavingsAccountService"/>-->
-
- <!-- <sca:reference name="stockAccountServiceRef" type="bigbank.account.stock.StockAccountService"/>-->
-
-</beans>
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/SavingsAccount-context.xml b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/SavingsAccount-context.xml
deleted file mode 100644
index b9e26bf81b..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/SavingsAccount-context.xml
+++ /dev/null
@@ -1,33 +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.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:sca="http://www.springframework.org/schema/sca"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/sca http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd">
-
- <sca:service name="SavingsAccountService"
- type="bigbank.account.savings.SavingsAccountService" target="SavingsAccountServiceBean"/>
-
- <bean id="SavingsAccountServiceBean" class="bigbank.account.savings.SavingsAccountServiceImpl">
- </bean>
-
-</beans>
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/MANIFEST.MF b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/MANIFEST.MF
deleted file mode 100644
index 32fa070ffb..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,4 +0,0 @@
-Manifest-Version: 1.0
-Spring-Context: META-INF/spring/StockAccount-context.xml
-
-
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/spring/StockAccount-context.xml b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/spring/StockAccount-context.xml
deleted file mode 100644
index b30f821f7e..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/spring-context/StockAccount/META-INF/spring/StockAccount-context.xml
+++ /dev/null
@@ -1,33 +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.
--->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:sca="http://www.springframework.org/schema/sca"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/sca http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd">
-
- <sca:service name="StockAccountService"
- type="bigbank.account.stock.StockAccountService" target="StockAccountServiceBean"/>
-
- <bean id="StockAccountServiceBean" class="bigbank.account.stock.StockAccountServiceImpl">
- </bean>
-
-</beans> \ No newline at end of file
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/web/style.css b/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/web/style.css
deleted file mode 100644
index 1071583264..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/main/resources/web/style.css
+++ /dev/null
@@ -1,22 +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.
- */
-* { font-family: arial; }
-
-table, th, td { border: 2px solid blue; border-collapse: collapse; }
-th { color: white; background-color: blue; }
diff --git a/branches/sca-android/samples/simple-bigbank-spring/src/test/java/bigbank/BigBankTestCase.java b/branches/sca-android/samples/simple-bigbank-spring/src/test/java/bigbank/BigBankTestCase.java
deleted file mode 100644
index d82e383e46..0000000000
--- a/branches/sca-android/samples/simple-bigbank-spring/src/test/java/bigbank/BigBankTestCase.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 bigbank;
-
-import junit.framework.TestCase;
-
-import bigbank.server.BigBankServer;
-
-/**
- * Tests out the big bank service
- *
- */
-public class BigBankTestCase extends TestCase {
-
- public void testServer() throws Exception {
- BigBankServer.main(new String[] {"1000"});
- }
-}