summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-0.99/samples/old/bigbank/webclient/src
diff options
context:
space:
mode:
Diffstat (limited to 'branches/sca-java-0.99/samples/old/bigbank/webclient/src')
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/account/AccountServiceComponentImpl.java117
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/AccountLoginServiceImpl.java64
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/LoginService.java36
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileService.java42
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileServiceImpl.java69
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/SimpleLoginServiceImpl.java51
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountLogTag.java120
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountStatusTag.java135
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockLogTag.java81
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockStatusTag.java85
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/LoginBarrierTag.java101
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/ServiceTag.java107
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/FormServlet.java161
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/LoginServlet.java96
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/resources/wsdl/AccountService.wsdl466
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/CustomerProfile.jsp100
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld127
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl53
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/web.xml83
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountLog.jsp99
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountTransaction.jsp50
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/login.html60
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/purchaseStock.jsp59
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/stockSale.jsp56
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/summary.jsp144
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestAccountService.java45
-rw-r--r--branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestLoginService.java42
27 files changed, 0 insertions, 2649 deletions
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/account/AccountServiceComponentImpl.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/account/AccountServiceComponentImpl.java
deleted file mode 100644
index a0f98f14f3..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/account/AccountServiceComponentImpl.java
+++ /dev/null
@@ -1,117 +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.webclient.services.account;
-
-import java.rmi.RemoteException;
-
-import org.osoa.sca.ServiceUnavailableException;
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-import com.bigbank.account.AccountLog;
-import com.bigbank.account.AccountReport;
-import com.bigbank.account.AccountService;
-import com.bigbank.account.CustomerProfileData;
-import com.bigbank.account.StockSummary;
-
-/**
- */
-@Service(AccountService.class)
-public class AccountServiceComponentImpl implements AccountService {
-
- private AccountService accountService;
-
- @Reference
- public void setAccountService(AccountService accountService) {
- this.accountService = accountService;
- }
-
- /**
- *
- */
- public AccountServiceComponentImpl() {
- super();
- }
-
- /**
- * @see bigbank.account.services.account.AccountService#getAccountReport(java.lang.String)
- */
- public AccountReport getAccountReport(int customerID) {
- try {
- return accountService.getAccountReport(customerID);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
- public StockSummary purchaseStock(int customerID, StockSummary stockSummary) throws RemoteException {
- try {
- return accountService.purchaseStock(customerID, stockSummary);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
- public CustomerProfileData getCustomerProfile(String param2) throws RemoteException {
- try {
- return accountService.getCustomerProfile(param2);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
- public float deposit(String account, float amount) throws RemoteException {
- try {
- return accountService.deposit(account, amount);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
- public StockSummary sellStock(int purchaseLotNumber, int quantity) throws RemoteException {
- try {
- return accountService.sellStock(purchaseLotNumber, quantity);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
- public float withdraw(String account, float amount) throws RemoteException {
- try {
- return accountService.withdraw(account, amount);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
- public CustomerProfileData createAccount(CustomerProfileData customerProfile, boolean createSavings, boolean createCheckings)
- throws RemoteException {
-
- return accountService.createAccount(customerProfile, createSavings, createCheckings);
- }
-
- public AccountLog getAccountLog(int customerID) throws RemoteException {
- try {
- return accountService.getAccountLog(customerID);
- } catch (Exception e) {
- throw new ServiceUnavailableException(e);
- }
- }
-
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/AccountLoginServiceImpl.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/AccountLoginServiceImpl.java
deleted file mode 100644
index d6c40e8dda..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/AccountLoginServiceImpl.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 bigbank.webclient.services.profile;
-
-import java.rmi.RemoteException;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.Service;
-
-import com.bigbank.account.AccountService;
-import com.bigbank.account.CustomerProfileData;
-
-@Service(LoginService.class)
-@Scope("COMPOSITE")
-public class AccountLoginServiceImpl implements LoginService {
-
- public AccountService accountService;
-
- @Reference
- public void setAccountService(AccountService accountService) {
- this.accountService = accountService;
- }
-
- public ProfileService profileService;
-
- @Reference
- public void setProfileService(ProfileService profileService) {
- this.profileService = profileService;
- }
-
- public int login(String userName, String password) throws RemoteException {
-
- CustomerProfileData profileData = accountService.getCustomerProfile(userName);
-
- if (!password.equals(profileData.getPassword())) {
- return INVALID_PASSWORD;
- }
-
- profileService.setLoggedIn(true);
- profileService.setFirstName(profileData.getFirstName());
- profileService.setLastName(profileData.getLastName());
- profileService.setId(profileData.getId());
-
- return SUCCESS;
- }
-
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/LoginService.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/LoginService.java
deleted file mode 100644
index c688df2597..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/LoginService.java
+++ /dev/null
@@ -1,36 +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.webclient.services.profile;
-
-import java.rmi.RemoteException;
-
-import org.apache.tuscany.api.annotation.DataType;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface LoginService {
-
- static final int SUCCESS = 1;
-
- static final int INVALID_LOGIN = -1;
-
- static final int INVALID_PASSWORD = -2;
-
- int login(String userName, String password) throws RemoteException;
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileService.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileService.java
deleted file mode 100644
index 551d80c935..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileService.java
+++ /dev/null
@@ -1,42 +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.webclient.services.profile;
-
-import org.apache.tuscany.api.annotation.DataType;
-import org.osoa.sca.annotations.Remotable;
-
-@Remotable
-public interface ProfileService {
-
- String getFirstName();
-
- void setFirstName(String pName);
-
- String getLastName();
-
- void setLastName(String pName);
-
- boolean isLoggedIn();
-
- void setLoggedIn(boolean pStatus);
-
- int getId();
-
- void setId(int pId);
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileServiceImpl.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileServiceImpl.java
deleted file mode 100644
index 5385a7c3fc..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/ProfileServiceImpl.java
+++ /dev/null
@@ -1,69 +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.webclient.services.profile;
-
-import org.osoa.sca.annotations.Property;
-import org.osoa.sca.annotations.Scope;
-import org.osoa.sca.annotations.Service;
-
-@Service(ProfileService.class)
-@Scope("SESSION")
-public class ProfileServiceImpl implements ProfileService {
-
- private String firstName;
-
- public String getFirstName() {
- return firstName;
- }
-
- @Property
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- private String lastName;
-
- public String getLastName() {
- return lastName;
- }
-
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- private boolean loggedIn;
-
- public boolean isLoggedIn() {
- return loggedIn;
- }
-
- public void setLoggedIn(boolean status) {
- loggedIn = status;
- }
-
- private int id;
-
- public int getId() {
- return id;
- }
-
- public void setId(int id) {
- this.id = id;
- }
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/SimpleLoginServiceImpl.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/SimpleLoginServiceImpl.java
deleted file mode 100644
index 711c6ba0b9..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/services/profile/SimpleLoginServiceImpl.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 bigbank.webclient.services.profile;
-
-import org.osoa.sca.annotations.Reference;
-import org.osoa.sca.annotations.Service;
-
-@Service(LoginService.class)
-public class SimpleLoginServiceImpl implements LoginService {
-
- public ProfileService profileService;
-
- @Reference
- public void setProfileService(ProfileService profileService) {
- this.profileService = profileService;
- }
-
- public int login(String userName, String password) {
-
- if (!"test".equals(userName)) {
- return INVALID_LOGIN;
- }
-
- if (!"password".equals(password)) {
- return INVALID_PASSWORD;
- }
-
- profileService.setLoggedIn(true);
- profileService.setFirstName("John");
- profileService.setLastName("Doe");
- profileService.setId(12345);
-
- return SUCCESS;
- }
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountLogTag.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountLogTag.java
deleted file mode 100644
index 08751bdc3d..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountLogTag.java
+++ /dev/null
@@ -1,120 +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.webclient.tags.account;
-
-import java.util.Iterator;
-import java.util.List;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-import bigbank.webclient.services.profile.ProfileService;
-
-import com.bigbank.account.AccountLog;
-import com.bigbank.account.AccountService;
-
-public class AccountLogTag extends TagSupport {
-
- public AccountLogTag() {
- super();
- }
-
- private String mAccountService;
-
- public String getAccountService() {
- return mAccountService;
- }
-
- public void setAccountService(String pAccountService) {
- mAccountService = pAccountService;
- }
-
- private String mProfileService;
-
- public String getProfileService() {
- return mProfileService;
- }
-
- public void setProfileService(String pProfileService) {
- mProfileService = pProfileService;
- }
-
- private String mId;
-
- @Override
- public String getId() {
- return mId;
- }
-
- @Override
- public void setId(String pId) {
- mId = pId;
- }
-
- private Iterator mIterator;
-
- @Override
- public int doStartTag() throws JspException {
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
-
- ProfileService profile = moduleContext.locateService(ProfileService.class, mProfileService);
-
- if (profile == null) {
- throw new JspException("Profile [" + mProfileService + "] not found in current module context");
- }
-
- AccountService service = (AccountService) moduleContext.locateService(AccountService.class, mAccountService);
- if (service == null) {
- throw new JspException("Service [" + mAccountService + "] not found in current module context");
- }
- List entries;
- try {
- AccountLog accountLog = service.getAccountLog(profile.getId());
- pageContext.setAttribute("StockLogEntries", accountLog.getStockLogEntries());
- entries = accountLog.getAccountLogEntries();
- } catch (Exception e) {
- throw new JspException(e);
- }
- mIterator = entries.iterator();
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_INCLUDE;
- } else {
- return SKIP_BODY;
- }
- }
-
- @Override
- public int doAfterBody() {
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_AGAIN;
- } else {
- return SKIP_BODY;
- }
- }
-
- @Override
- public void release() {
- super.release();
- }
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountStatusTag.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountStatusTag.java
deleted file mode 100644
index 3733cc84dd..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/AccountStatusTag.java
+++ /dev/null
@@ -1,135 +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.webclient.tags.account;
-
-import java.util.Iterator;
-import java.util.List;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-import bigbank.webclient.services.profile.ProfileService;
-
-import com.bigbank.account.AccountReport;
-import com.bigbank.account.AccountService;
-
-/**
- * Retrieves and iterates over account summary information for the current profile by accessing the remotable account service component
- */
-
-public class AccountStatusTag extends TagSupport {
-
- // ----------------------------------
- // Constructors
- // ----------------------------------
-
- public AccountStatusTag() {
- super();
- }
-
- // ----------------------------------
- // Methods
- // ----------------------------------
-
- private String mAccountService;
-
- public String getAccountService() {
- return mAccountService;
- }
-
- public void setAccountService(String pAccountService) {
- mAccountService = pAccountService;
- }
-
- private String mProfileService;
-
- public String getProfileService() {
- return mProfileService;
- }
-
- public void setProfileService(String pProfileService) {
- mProfileService = pProfileService;
- }
-
- private String mId;
-
- @Override
- public String getId() {
- return mId;
- }
-
- @Override
- public void setId(String pId) {
- mId = pId;
- }
-
- private Iterator mIterator;
-
- @Override
- public int doStartTag() throws JspException {
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
-
- ProfileService profile = moduleContext.locateService(ProfileService.class, mProfileService);
-
- if (profile == null) {
- throw new JspException("Profile [" + mProfileService + "] not found in current module context");
- }
-
- AccountService service = (AccountService) moduleContext.locateService(AccountService.class, mAccountService);
-
- if (service == null) {
- throw new JspException("Service [" + mAccountService + "] not found in current module context");
- }
- List summaries;
- try {
- AccountReport accountReport = service.getAccountReport(profile.getId());
- pageContext.setAttribute("StockSummaries", accountReport.getStockSummaries());
- summaries = accountReport.getAccountSummaries();
- } catch (Exception e) {
- throw new JspException(e);
- }
- mIterator = summaries.iterator();
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_INCLUDE;
- } else {
- return SKIP_BODY;
- }
- }
-
- @Override
- public int doAfterBody() {
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_AGAIN;
- } else {
- return SKIP_BODY;
- }
- }
-
- @Override
- public void release() {
- super.release();
- mId = null;
- mIterator = null;
- }
-} \ No newline at end of file
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockLogTag.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockLogTag.java
deleted file mode 100644
index ea2df8aa55..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockLogTag.java
+++ /dev/null
@@ -1,81 +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.webclient.tags.account;
-
-import java.util.Iterator;
-import java.util.List;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-public class StockLogTag extends TagSupport {
-
- public StockLogTag() {
- super();
- }
-
- private String mId;
-
- @Override
- public String getId() {
- return mId;
- }
-
- @Override
- public void setId(String pId) {
- mId = pId;
- }
-
- private Iterator mIterator;
-
- @Override
- public int doStartTag() throws JspException {
-
- List entries = (List) pageContext.getAttribute("StockLogEntries");
- if (null == entries) {
- return SKIP_BODY;
- }
- mIterator = entries.iterator();
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_INCLUDE;
- } else {
- return SKIP_BODY;
- }
- }
-
- @Override
- public int doAfterBody() {
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_AGAIN;
- } else {
- pageContext.setAttribute("StockLogEntries", null);
- return SKIP_BODY;
- }
- }
-
- @Override
- public void release() {
- pageContext.setAttribute("StockLogEntries", null);
- super.release();
- mId = null;
- mIterator = null;
- }
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockStatusTag.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockStatusTag.java
deleted file mode 100644
index b2c61193e7..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/account/StockStatusTag.java
+++ /dev/null
@@ -1,85 +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.webclient.tags.account;
-
-import java.util.Iterator;
-import java.util.List;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-/**
- * Retrieves and iterates over account summary information for the current profile by accessing the remotable account service component
- */
-
-public class StockStatusTag extends TagSupport {
-
- public StockStatusTag() {
- super();
- }
-
- private String mId;
-
- @Override
- public String getId() {
- return mId;
- }
-
- @Override
- public void setId(String pId) {
- mId = pId;
- }
-
- private Iterator mIterator;
-
- @Override
- public int doStartTag() throws JspException {
-
- List summaries = (List) pageContext.getAttribute("StockSummaries");
- if (null == summaries) {
- return SKIP_BODY;
- }
- mIterator = summaries.iterator();
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_INCLUDE;
- } else {
- return SKIP_BODY;
- }
- }
-
- @Override
- public int doAfterBody() {
- if (mIterator.hasNext()) {
- pageContext.setAttribute(mId, mIterator.next());
- return EVAL_BODY_AGAIN;
- } else {
- pageContext.setAttribute("StockSummaries", null);
- return SKIP_BODY;
- }
- }
-
- @Override
- public void release() {
- pageContext.setAttribute("StockSummaries", null);
- super.release();
- mId = null;
- mIterator = null;
- }
-} \ No newline at end of file
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/LoginBarrierTag.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/LoginBarrierTag.java
deleted file mode 100644
index 6c50595d0f..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/LoginBarrierTag.java
+++ /dev/null
@@ -1,101 +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.webclient.tags.sca;
-
-import java.io.IOException;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-import bigbank.webclient.services.profile.ProfileService;
-
-public class LoginBarrierTag extends TagSupport {
-
- public LoginBarrierTag() {
- super();
- }
-
- private String mProfile;
-
- public String getProfile() {
- return mProfile;
- }
-
- public void setProfile(String pProfile) {
- mProfile = pProfile;
- }
-
- private String mUrl;
-
- public String getUrl() {
- return mUrl;
- }
-
- public void setUrl(String pUrl) {
- mUrl = pUrl;
- }
-
- int doPage = EVAL_PAGE;
-
- @Override
- public int doStartTag() throws JspException {
- if (mProfile == null || mProfile.length() < 1) {
- throw new JspException("Invalid profile location specified");
- }
-
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
-
- ProfileService profile = moduleContext.locateService(ProfileService.class, mProfile);
-
- if (profile == null) {
- throw new JspException("Profile [" + mProfile + "] not found in current module context");
- }
-
- if (profile.isLoggedIn()) {
- return EVAL_BODY_INCLUDE;
- } else {
- try {
- doPage = SKIP_PAGE;
- pageContext.forward(mUrl);
- ((HttpServletResponse) (pageContext.getResponse())).sendRedirect("login.html");
- return SKIP_BODY;
- } catch (ServletException e) {
- throw new JspException("Unable to forward to [" + mUrl + "]");
- } catch (IOException e) {
- throw new JspException("Unable to forward to [" + mUrl + "]");
- }
- }
- }
-
- @Override
- public int doEndTag() throws JspException {
- return doPage;
- }
-
- @Override
- public void release() {
- super.release();
- }
-
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/ServiceTag.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/ServiceTag.java
deleted file mode 100644
index d1263377c2..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/tags/sca/ServiceTag.java
+++ /dev/null
@@ -1,107 +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.webclient.tags.sca;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-/**
- * Places an SCA service in the JSP page context, making it available to other tags corresponding to its id value.
- */
-
-public class ServiceTag extends TagSupport {
-
- // ----------------------------------
- // Constructors
- // ----------------------------------
-
- public ServiceTag() {
- super();
- }
-
- // ----------------------------------
- // Methods
- // ----------------------------------
-
- private String mName;
-
- /**
- * Returns the name of the SCA service to import into the page context.
- */
- public String getName() {
- return mName;
- }
-
- /**
- * Sets name of the SCA service to import into the page context.
- */
- public void setName(String pName) {
- mName = pName;
- }
-
- private String mId;
-
- /**
- * Returns the id of the service in the page context
- */
- @Override
- public String getId() {
- return mId;
- }
-
- /**
- * Sets the id of the service for the page context
- */
-
- @Override
- public void setId(String pId) {
- mId = pId;
- }
-
- @Override
- public int doStartTag() throws JspException {
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
-
- Object service = moduleContext.locateService(Object.class, mName);
-
- if (service == null) {
- throw new JspException("Service [" + mName + "] not found in current module context");
- }
- if (mId == null) {
- // if the Id name was not specified, default to the basic name of the
- // service
- mId = mName;
- }
- pageContext.setAttribute(mId, service);
- return EVAL_BODY_INCLUDE;
- }
-
- @Override
- public int doEndTag() throws JspException {
- return EVAL_PAGE;
- }
-
- @Override
- public void release() {
- super.release();
- }
-} \ No newline at end of file
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/FormServlet.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/FormServlet.java
deleted file mode 100644
index 3acdbee845..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/FormServlet.java
+++ /dev/null
@@ -1,161 +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.webclient.ui;
-
-import java.io.IOException;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-import bigbank.webclient.services.profile.ProfileService;
-
-import com.bigbank.account.AccountFactory;
-import com.bigbank.account.AccountService;
-import com.bigbank.account.CustomerProfileData;
-import com.bigbank.account.StockSummary;
-
-public class FormServlet extends HttpServlet {
-
- // private ServletContext mContext;
- // public void init(ServletConfig pCfg) throws ServletException {
- // mContext = pCfg.getServletContext();
- // }
-
- @Override
- public void doPost(HttpServletRequest pReq, HttpServletResponse pResp) throws ServletException {
-
- try {
- final String action = pReq.getParameter("action");
-
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
- AccountService accountServices = (AccountService) moduleContext.locateService(AccountService.class, "AccountServiceComponent");
- if (accountServices == null) {
- throw new ServletException("AccountServiceComponent");
- }
- ProfileService profileServices = null;
- if (!"createAccount".equals(action)) {
- profileServices = moduleContext.locateService(ProfileService.class, "ProfileServiceComponent");
- if (profileServices == null) {
- throw new ServletException("ProfileServiceComponent not found.");
- }
- if (!profileServices.isLoggedIn()) {
- throw new ServletException("User id '" + profileServices.getId() + "' not logged on.");
- }
- }
-
- if ("createAccount".equals(action)) {
- createAccount(pReq, pResp, accountServices);
- } else if ("account".equals(action)) {
- accountTransaction(pReq, pResp, accountServices);
- } else if ("stockPurchase".equals(action)) {
- stockPurchase(pReq, pResp, profileServices, accountServices);
- } else if ("stockSale".equals(action)) {
- stockSale(pReq, pResp, profileServices, accountServices);
- } else {
- throw new IllegalArgumentException("Unknown action in Form servlet '" + action + "'.");
- }
- // mContext.getRequestDispatcher("summary.jsp").forward(pReq, pResp);
- pResp.sendRedirect("summary.jsp");
- } catch (ServletException e) {
- e.printStackTrace();
- throw e;
-
- } catch (Exception e) {
-
- throw new ServletException(e);
- }
-
- }
-
- private void stockSale(HttpServletRequest req, HttpServletResponse resp, ProfileService profileServices, AccountService accountServices)
- throws ServletException {
- try {
- if (!"cancel".equals(req.getParameter("cancel"))) {
-
- int quantity = Integer.parseInt(req.getParameter("quantity"));
- int purchaseLotNumber = Integer.parseInt(req.getParameter("purchaseLotNumber"));
- accountServices.sellStock(purchaseLotNumber, quantity);
- }
-
- } catch (Exception e) {
-
- throw new ServletException("stockSale " + e.getMessage(), e);
- }
-
- }
-
- private void stockPurchase(HttpServletRequest req, HttpServletResponse resp, ProfileService profileServices, AccountService accountServices)
- throws ServletException {
- try {
- if (!"cancel".equals(req.getParameter("cancel"))) {
-
- String symbol = req.getParameter("symbol").trim().toUpperCase();
- int quantity = Integer.parseInt(req.getParameter("quantity"));
- StockSummary stockSummry = AccountFactory.INSTANCE.createStockSummary();
- stockSummry.setSymbol(symbol);
- stockSummry.setQuantity(quantity);
- accountServices.purchaseStock(profileServices.getId(), stockSummry);
- }
- } catch (Exception e) {
- throw new ServletException("stockPurchase " + e.getMessage(), e);
- }
- }
-
- private void accountTransaction(HttpServletRequest req, HttpServletResponse resp, AccountService accountServices) throws ServletException {
- try {
- if (!"cancel".equals(req.getParameter("cancel"))) {
- String account = req.getParameter("account");
- String amount = req.getParameter("Amount");
- if ("deposit".equals(req.getParameter("actionType"))) {
- accountServices.deposit(account, Float.parseFloat(amount));
- } else {
- accountServices.withdraw(account, Float.parseFloat(amount));
- }
- }
- } catch (Exception e) {
- throw new ServletException("accountTransaction " + e.getMessage(), e);
- }
-
- }
-
- private void createAccount(HttpServletRequest pReq, HttpServletResponse pResp, AccountService accountServices) throws ServletException {
- try {
- CustomerProfileData customerProfileData = AccountFactory.INSTANCE.createCustomerProfileData();
- customerProfileData.setFirstName(pReq.getParameter("firstName"));
- customerProfileData.setLastName(pReq.getParameter("lastName"));
- customerProfileData.setAddress(pReq.getParameter("address"));
- customerProfileData.setEmail(pReq.getParameter("email"));
- customerProfileData.setLoginID(pReq.getParameter("loginID"));
- customerProfileData.setPassword(pReq.getParameter("password"));
-
- CustomerProfileData resp = accountServices.createAccount(customerProfileData, "savings".equals(pReq.getParameter("savings")), "checkings"
- .equals(pReq.getParameter("checkings")));
- LoginServlet.login(resp.getLoginID(), resp.getPassword());
-
- } catch (IOException e) {
- throw new ServletException(e);
- }
-
- }
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/LoginServlet.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/LoginServlet.java
deleted file mode 100644
index 784cc4fb40..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/java/bigbank/webclient/ui/LoginServlet.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package bigbank.webclient.ui;
-
-import java.io.IOException;
-import java.rmi.RemoteException;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-import bigbank.webclient.services.profile.LoginService;
-
-public class LoginServlet extends HttpServlet {
-
- @Override
- public void init(ServletConfig pCfg) throws ServletException {
-
- }
-
- @Override
- public void doPost(HttpServletRequest pReq, HttpServletResponse pResp) throws ServletException {
-
- if ("logout".equals(pReq.getParameter("logout")) || "logoutHIDDEN".equals(pReq.getParameter("logoutHIDDEN"))) {
- HttpSession sess = pReq.getSession();
- if (sess != null) {
- sess.invalidate();
- }
- try {
- pResp.sendRedirect("login.html");
- } catch (IOException e) {
-
- e.printStackTrace();
- throw new ServletException(e);
- }
-
- } else {
- pReq.getSession(); // make sure session started.
- String login = pReq.getParameter("login");
- String password = pReq.getParameter("password");
- try {
- int resp = login(login, password);
- if (resp == LoginService.SUCCESS) {
-
- pResp.sendRedirect("summary.jsp");
- } else {
-
- pResp.sendRedirect("login.html");
- }
- } catch (IOException e) {
- throw new ServletException(e);
- }
- }
- }
-
- static int login(final String login, final String password) throws ServletException {
-
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
- LoginService loginMgr = moduleContext.locateService(LoginService.class, "LoginServiceComponent");
-
- if (loginMgr == null) {
- throw new ServletException("LoginManager not found");
- }
-
- try {
- return loginMgr.login(login, password);
- } catch (RemoteException e) {
-
- throw new ServletException(e);
- }
-
- }
-
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/resources/wsdl/AccountService.wsdl b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/resources/wsdl/AccountService.wsdl
deleted file mode 100644
index 980c0cf279..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/resources/wsdl/AccountService.wsdl
+++ /dev/null
@@ -1,466 +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.
--->
-<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:account="http://www.bigbank.com/account"
- targetNamespace="http://www.bigbank.com/account"
- name="AccountService">
-
- <wsdl:types>
- <xsd:schema targetNamespace="http://www.bigbank.com/account"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:account="http://www.bigbank.com/account"
-
- > <!-- xmlns:sdojava="commonj.sdo/java" sdojava:package="org.apache.tuscany.samples.bigbank.account" -->
-
-
-<!-- <xsd:complexType name="DataGraphRoot">
- <xsd:sequence>
- <xsd:element name="customerProfileData" type="account:CustomerProfileData" maxOccurs="unbounded" minOccurs="0" />
- <xsd:element name="StockSummaries" type="account:StockSummary" maxOccurs="unbounded" minOccurs="0" />
- <xsd:element name="AccountSummaries" type="account:AccountSummary" maxOccurs="unbounded" minOccurs="0" />
- <xsd:element name="StockLogEntries" type="account:StockLogEntry" maxOccurs="unbounded" minOccurs="0" />
- <xsd:element name="AccountLogEntries" type="account:AccountLogEntry" maxOccurs="unbounded" minOccurs="0" />
- </xsd:sequence>
- </xsd:complexType>-->
-
-
- <xsd:element name="getAccountReport">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="customerID"
- type="xsd:int" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="getAccountReportResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="accountReport"
- type="account:AccountReport" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:complexType name="AccountReport">
- <xsd:sequence>
- <xsd:element name="accountSummaries"
- type="account:AccountSummary" maxOccurs="unbounded" />
- <xsd:element name="stockSummaries"
- type="account:StockSummary" maxOccurs="unbounded" />
-
- </xsd:sequence>
- </xsd:complexType>
- <xsd:complexType name="AccountSummary">
- <xsd:attribute name="accountNumber" type="xsd:string" />
- <xsd:attribute name="accountType" type="xsd:string" />
- <xsd:attribute name="balance" type="xsd:float" />
- </xsd:complexType>
-
- <xsd:complexType name="StockSummary">
- <xsd:attribute name="purchaseLotNumber" type="xsd:int" />
- <!-- unique id for this purchase -->
- <xsd:attribute name="symbol" type="xsd:string" />
- <xsd:attribute name="quantity" type="xsd:int" />
- <xsd:attribute name="purchaseDate" type="xsd:dateTime" />
- <xsd:attribute name="purchasePrice" type="xsd:float" />
- <xsd:attribute name="currentPrice" type="xsd:float" />
- <xsd:attribute name="company" type="xsd:string" />
- <xsd:attribute name="highPrice" type="xsd:float" />
- <xsd:attribute name="lowPrice" type="xsd:float" />
-
- </xsd:complexType>
-
- <!-- Profile in data base -->
- <xsd:element name="getCustomerProfile">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="loginID" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:complexType name="CustomerProfileData">
- <xsd:sequence>
- <xsd:element name="firstName" type="xsd:string" />
- <xsd:element name="lastName" type="xsd:string" />
- <xsd:element name="address" type="xsd:string" />
- <xsd:element name="email" type="xsd:string" />
- <xsd:element name="loginID" type="xsd:string" />
- <xsd:element name="password" type="xsd:string" />
- <xsd:element name="id" type="xsd:int" />
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:element name="getCustomerProfileResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="customerProfile"
- type="account:CustomerProfileData" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:element name="withdraw">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="accountNumber"
- type="xsd:string" />
- <xsd:element name="amount" type="xsd:float" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="withdrawResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="balance" type="xsd:float" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:element name="deposit">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="accountNumber"
- type="xsd:string" />
- <xsd:element name="amount" type="xsd:float" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="depositResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="balance" type="xsd:float" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:element name="purchaseStock">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="id" type="xsd:int" />
- <xsd:element name="stock" type="account:StockSummary" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:element name="purchaseStockResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="purchaseSummary"
- type="account:StockSummary" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
-
-
- <xsd:element name="sellStock">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="purchaseLotNumber"
- type="xsd:int" /><!-- unique id for this purchase -->
- <xsd:element name="quantity" type="xsd:int" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:element name="createAccount">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="customerProfile"
- type="account:CustomerProfileData" />
- <xsd:element name="createSavings"
- type="xsd:boolean" />
- <xsd:element name="createCheckings"
- type="xsd:boolean" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="createAccountResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="customerProfile"
- type="account:CustomerProfileData" />
- </xsd:sequence>
- </xsd:complexType>
-
- </xsd:element>
-
- <xsd:element name="getAccountLog">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="customerID"
- type="xsd:int" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="getAccountLogResponse">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="accountLog"
- type="account:AccountLog" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
-
- <xsd:complexType name="AccountLog">
- <xsd:sequence>
- <xsd:element name="accountLogEntries"
- type="account:AccountLogEntry" maxOccurs="unbounded" />
- <xsd:element name="stockLogEntries"
- type="account:StockLogEntry" maxOccurs="unbounded" />
-
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="AccountLogEntry">
- <xsd:attribute name="logSeqNo" type="xsd:int" />
- <xsd:attribute name="id" type="xsd:int" />
- <xsd:attribute name="accountNumber" type="xsd:string" />
- <xsd:attribute name="actionType" type="xsd:string" />
- <xsd:attribute name="amount" type="xsd:float" />
- </xsd:complexType>
-
- <xsd:complexType name="StockLogEntry">
- <xsd:attribute name="logSeqNo" type="xsd:int" />
- <xsd:attribute name="id" type="xsd:int" />
- <xsd:attribute name="symbol" type="xsd:string" />
- <xsd:attribute name="quantity" type="xsd:int" />
- <xsd:attribute name="actionType" type="xsd:string" />
- <xsd:attribute name="purchaseLotNumber" type="xsd:int" />
- </xsd:complexType>
-
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="getAccountReportRequest">
- <wsdl:part element="account:getAccountReport"
- name="getAccountReportRequest" />
- </wsdl:message>
- <wsdl:message name="getAccountReportResponse">
- <wsdl:part element="account:getAccountReportResponse"
- name="getAccountReportResponse" />
- </wsdl:message>
-
- <wsdl:message name="getCustomerProfileRequest">
- <wsdl:part element="account:getCustomerProfile"
- name="getCustomerProfile" />
- </wsdl:message>
- <wsdl:message name="getCustomerProfileResponse">
- <wsdl:part element="account:getCustomerProfileResponse"
- name="getCustomerProfileResponse" />
- </wsdl:message>
-
- <wsdl:message name="withdrawRequest">
- <wsdl:part element="account:withdraw" name="withdrawRequest" />
- </wsdl:message>
-
- <wsdl:message name="withdrawResponse">
- <wsdl:part element="account:withdrawResponse"
- name="withdrawResponse" />
- </wsdl:message>
-
- <wsdl:message name="depositRequest">
- <wsdl:part element="account:deposit" name="depositRequest" />
- </wsdl:message>
-
- <wsdl:message name="depositResponse">
- <wsdl:part element="account:depositResponse"
- name="depositResponse" />
- </wsdl:message>
-
- <wsdl:message name="purchaseStockRequest">
- <wsdl:part element="account:purchaseStock"
- name="purchaseStockRequest" />
- </wsdl:message>
-
- <wsdl:message name="purchaseStockResponse">
- <wsdl:part element="account:purchaseStockResponse"
- name="purchaseStockResponse" />
- </wsdl:message>
-
- <wsdl:message name="sellStockRequest">
- <wsdl:part element="account:sellStock" name="sellStockRequest" />
- </wsdl:message>
-
- <wsdl:message name="createAccountRequest">
- <wsdl:part element="account:createAccount" name="createAccountRequest" />
- </wsdl:message>
-
- <wsdl:message name="createAccountResponse">
- <wsdl:part element="account:createAccountResponse" name="createAccountResponse" />
- </wsdl:message>
-
- <wsdl:message name="getAccountLogRequest">
- <wsdl:part element="account:getAccountLog"
- name="getAccountLogRequest" />
- </wsdl:message>
-
- <wsdl:message name="getAccountLogResponse">
- <wsdl:part element="account:getAccountLogResponse"
- name="getAccountLogResponse" />
- </wsdl:message>
-
- <wsdl:portType name="AccountService">
- <wsdl:operation name="getAccountReport">
- <wsdl:input message="account:getAccountReportRequest" />
- <wsdl:output message="account:getAccountReportResponse" />
- </wsdl:operation>
-
- <wsdl:operation name="getCustomerProfile">
- <wsdl:input message="account:getCustomerProfileRequest" />
- <wsdl:output message="account:getCustomerProfileResponse" />
- </wsdl:operation>
-
- <wsdl:operation name="withdraw">
- <wsdl:input message="account:withdrawRequest" />
- <wsdl:output message="account:withdrawResponse" />
- </wsdl:operation>
-
- <wsdl:operation name="deposit">
- <wsdl:input message="account:depositRequest" />
- <wsdl:output message="account:depositResponse" />
- </wsdl:operation>
-
- <wsdl:operation name="purchaseStock">
- <wsdl:input message="account:purchaseStockRequest" />
- <wsdl:output message="account:purchaseStockResponse" />
- </wsdl:operation>
-
- <wsdl:operation name="sellStock">
- <wsdl:input message="account:sellStockRequest" />
- <wsdl:output message="account:purchaseStockResponse" />
- </wsdl:operation>
-
-
- <wsdl:operation name="createAccount">
- <wsdl:input message="account:createAccountRequest" />
- <wsdl:output message="account:createAccountResponse" />
- </wsdl:operation>
-
- <wsdl:operation name="getAccountLog">
- <wsdl:input message="account:getAccountLogRequest" />
- <wsdl:output message="account:getAccountLogResponse" />
- </wsdl:operation>
-
- </wsdl:portType>
-
-
-
- <wsdl:binding name="AccountServiceSOAP" type="account:AccountService">
- <soap:binding style="document"
- transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="getAccountReport">
- <soap:operation
- soapAction="http://www.bigbank.com/account/getAccountReport" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="getCustomerProfile">
- <soap:operation
- soapAction="http://www.bigbank.com/account/getCustomerProfile" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- <wsdl:operation name="withdraw">
- <soap:operation
- soapAction="http://www.bigbank.com/account/withdraw" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- <wsdl:operation name="deposit">
- <soap:operation
- soapAction="http://www.bigbank.com/account/deposit" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- <wsdl:operation name="purchaseStock">
- <soap:operation
- soapAction="http://www.bigbank.com/account/purchaseStock" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- <wsdl:operation name="sellStock">
- <soap:operation
- soapAction="http://www.bigbank.com/account/sellStock" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- <wsdl:operation name="createAccount">
- <soap:operation
- soapAction="http://www.bigbank.com/account/createAccount" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- <wsdl:operation name="getAccountLog">
- <soap:operation
- soapAction="http://www.bigbank.com/account/getAccountLog" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
- </wsdl:binding>
- <wsdl:service name="AccountService">
- <wsdl:port binding="account:AccountServiceSOAP"
- name="AccountServiceSOAP">
- <soap:address
- location="http://localhost:8085/sample-bigbank-account/services/AccountService" />
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/CustomerProfile.jsp b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/CustomerProfile.jsp
deleted file mode 100644
index 2dc17a8867..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/CustomerProfile.jsp
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- 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.
- --%>
-
-<HTML>
-<HEAD>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META http-equiv="Content-Style-Type" content="text/css">
-<%-- LINK href="theme/Master.css" rel="stylesheet" type="text/css" --%>
-<TITLE>BigBank- Customer Account</TITLE>
-</HEAD>
-<BODY><P><FONT size="+1">Customer Account</FONT><BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='createAccount' />
-<TABLE border="0">
- <TBODY>
- <TR>
- <TD>First name </TD>
- <TD width="10%"></TD>
- <TD><INPUT type="text" name="firstName" size="20"></TD>
- </TR>
- <TR>
- <TD>Last name</TD>
- <TD></TD>
- <TD><INPUT type="text" name="lastName" size="20"></TD>
- </TR>
- <TR>
- <TD>Address</TD>
- <TD></TD>
- <TD><INPUT type="text" name="address" size="36" maxlength="170"></TD>
- </TR>
- <TR>
- <TD>email</TD>
- <TD></TD>
- <TD><INPUT type="text" name="email" size="16" maxlength="39"></TD>
- </TR>
- <TR>
- <TD>&nbsp;</TD>
- <TD></TD>
- <TD></TD>
- </TR>
- <TR>
- <TD>Checkings</TD>
- <TD></TD>
- <TD><INPUT type="checkbox" name="checkings" value="checkings" checked></TD>
- </TR>
- <TR>
- <TD>Savings</TD>
- <TD></TD>
- <TD><INPUT type="checkbox" name="savings" value="savings" checked></TD>
- </TR>
- <TR>
- <TD>&nbsp;</TD>
- <TD></TD>
- <TD></TD>
- </TR>
- <TR>
- <TD>Logon ID</TD>
- <TD></TD>
- <TD><INPUT type="text" name="loginID" size="20"></TD>
- </TR>
- <TR>
- <TD>Password</TD>
- <TD></TD>
- <TD><INPUT type="password" name="password" size="20"></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD></TD>
- <TD></TD>
- </TR>
- </TBODY>
-</TABLE>
-<BR>
-<INPUT type="submit" name="update" value="update">&nbsp;&nbsp;
-<INPUT type="button" name="cancel" value="cancel"></FORM>
-<P><BR>
-</P>
-</BODY>
-</HTML>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld
deleted file mode 100644
index a3d92a2e46..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/bigbank-tags.tld
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!--
- 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.
- -->
-<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">
- <tlibversion>1.0</tlibversion>
- <jspversion>2.0</jspversion>
- <shortname>BigBank Tags</shortname>
- <info>Tag library containing BigBank tags</info>
- <tag>
- <name>service</name>
- <tagclass>bigbank.webclient.tags.sca.ServiceTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Places a reference to an SCA Service in the page context</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>name</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
- <tag>
- <name>login</name>
- <tagclass>bigbank.webclient.tags.sca.LoginBarrierTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Redirects if user is not logged in</info>
- <attribute>
- <name>profile</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>url</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
-
- </tag>
- <tag>
- <name>accountStatus</name>
- <tagclass>bigbank.webclient.tags.account.AccountStatusTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the account service</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>accountService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>profileService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
- <tag>
- <name>stockStatus</name>
- <tagclass>bigbank.webclient.tags.account.StockStatusTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the stocks</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
- <tag>
- <name>accountLog</name>
- <tagclass>bigbank.webclient.tags.account.AccountLogTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the accounts log</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>accountService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- <attribute>
- <name>profileService</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
- <tag>
- <name>stockLog</name>
- <tagclass>bigbank.webclient.tags.account.StockLogTag</tagclass>
- <bodycontent>JSP</bodycontent>
- <info>Accesses and iterates the stocks log</info>
- <attribute>
- <name>id</name>
- <required>true</required>
- <rtexprvalue>false</rtexprvalue>
- </attribute>
- </tag>
-
-
-</taglib>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl
deleted file mode 100644
index cf42086edb..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/default.scdl
+++ /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.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
- name="bigbank.webclient">
-
-
-
- <dbsdo:import.sdo xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0" factory="com.bigbank.account.AccountFactory"/>
-
- <component name="LoginServiceComponent">
- <implementation.java class="bigbank.webclient.services.profile.AccountLoginServiceImpl"/>
- <reference name="accountService">AccountServiceComponent</reference>
- <reference name="profileService">ProfileServiceComponent</reference>
- </component>
-
- <property name="name" type="xsd:string">Anonymous</property>
-
- <component name="ProfileServiceComponent">
- <implementation.java class="bigbank.webclient.services.profile.ProfileServiceImpl"/>
- <property name="firstName" source="$name"/>
- </component>
-
- <component name="AccountServiceComponent">
- <implementation.java class="bigbank.webclient.services.account.AccountServiceComponentImpl"/>
- <reference name="accountService">AccountService</reference>
- </component>
-
-
- <reference name="AccountService">
- <interface.wsdl interface="http://www.bigbank.com/account#wsdl.interface(AccountService)" wsdli:wsdlLocation="http://www.bigbank.com/account wsdl/AccountService.wsdl" />
- <binding.ws endpoint="http://www.bigbank.com/account#wsdl.endpoint(AccountService/AccountServiceSOAP)"
- location="wsdl/AccountService.wsdl" />
- </reference>
-
-</composite>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 398767e345..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,83 +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.
- -->
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
-Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
-<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-
- <display-name>Tuscany Bigbank Web UI sample</display-name>
- <welcome-file-list id="WelcomeFileList">
- <welcome-file>login.html</welcome-file>
- </welcome-file-list>
-
- <filter>
- <filter-name>TuscanyFilter</filter-name>
- <filter-class>org.apache.tuscany.runtime.webapp.TuscanyFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>TuscanyFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <context-param>
- <param-name>tuscany.online</param-name>
- <param-value>false</param-value>
- </context-param>
-
-
- <listener>
- <listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
- </listener>
-
- <listener>
- <listener-class>org.apache.tuscany.runtime.webapp.TuscanySessionListener</listener-class>
- </listener>
-
- <listener>
- <listener-class>org.apache.tuscany.runtime.webapp.TuscanyRequestListener</listener-class>
- </listener>
-
- <servlet>
- <servlet-name>LoginServlet</servlet-name>
- <servlet-class>bigbank.webclient.ui.LoginServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
- <servlet-name>FormServlet</servlet-name>
- <servlet-class>bigbank.webclient.ui.FormServlet</servlet-class>
- <load-on-startup>0</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>LoginServlet</servlet-name>
- <url-pattern>/loginAction/*</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>FormServlet</servlet-name>
- <url-pattern>/FormServlet/*</url-pattern>
- </servlet-mapping>
-
-
-
-
-
-
-
-
-</web-app>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountLog.jsp b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountLog.jsp
deleted file mode 100644
index 6e91a14dcc..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountLog.jsp
+++ /dev/null
@@ -1,99 +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.
- --%>
-
- <%@ page import="com.bigbank.account.AccountLogEntry" %>
- <%@ page import="com.bigbank.account.StockLogEntry" %>
- <%@ page session="true" %>
- <%@ page autoFlush="true" %>
- <%@ taglib uri="/WEB-INF/bigbank-tags.tld" prefix="sca" %>
-
- <html>
- <title>BigBank Account and Stock Log</title>
-
- <body>
-
- Account Log
-
- <table>
- <tr>
- <td><strong>Seq</strong></td>
- <td><strong>Account</strong></td>
- <td><strong>Action</strong></td>
- <td><strong>Amount</strong></td>
- </tr>
- <sca:accountLog accountService="AccountServiceComponent" profileService="ProfileServiceComponent" id="accountlogentry">
- <tr>
- <td>
- <jsp:getProperty name="accountlogentry" property="logSeqNo"/>
- </td>
- <td>
- <jsp:getProperty name="accountlogentry" property="accountNumber"/>
- </td>
- <td>
- <jsp:getProperty name="accountlogentry" property="actionType"/>
- </td>
- <td>
- <jsp:getProperty name="accountlogentry" property="amount"/>
- </td>
- </tr>
- </sca:accountLog>
- </table>
-
-
-
- <hr/>
- Stock Log
-
- <table>
-
- <tr>
- <td><strong>Seq</strong></td>
- <td><strong>Symbol</strong></td>
- <td><strong>Quantity</strong></td>
- <td>&nbsp;&nbsp;</td> <%-- spacer --%>
- <td><strong>Action</strong></td>
- <td><strong>PurchaseLotNumber</strong></td>
- </tr>
- <sca:stockLog id="stocklogentry">
- <tr>
- <td>
- <jsp:getProperty name="stocklogentry" property="logSeqNo"/>
- </td>
- <td>
- <jsp:getProperty name="stocklogentry" property="symbol"/>
- </td>
- <td>
- <jsp:getProperty name="stocklogentry" property="quantity"/>
- </td>
- <td>&nbsp;&nbsp;</td> <%-- spacer --%>
- <td>
- <jsp:getProperty name="stocklogentry" property="actionType"/>
- </td>
-
- <td>
- <jsp:getProperty name="stocklogentry" property="purchaseLotNumber"/>
- </td>
- </tr>
- </FORM>
- </sca:stockLog>
- </table>
-
-
- </body>
- </html>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountTransaction.jsp b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountTransaction.jsp
deleted file mode 100644
index 4017834867..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/accountTransaction.jsp
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- 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.
- --%>
-
-<HTML>
-<HEAD>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META name="GENERATOR" content="IBM Software Development Platform">
-<META http-equiv="Content-Style-Type" content="text/css">
-<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
-<TITLE>BigBank - <%=request.getParameter("account") %> </TITLE>
-</HEAD>
-<BODY>
-<P>Account <%= request.getParameter("account") %><BR>
-<BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='account' />
-<input type="hidden" name="account" value='<%= request.getParameter("account") %>' />
-<input type="hidden" name="actionType" value='<%=request.getParameter("transaction")%>' />
-Amount to <%=request.getParameter("transaction")%> <INPUT type="text" name="Amount" size="10"
- maxlength="10"><BR>
-<BR>
-<BR>
-<BR>
-<INPUT type="submit" name="Submit"
- value="Submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="submit"
- name="cancel" value="cancel">
-</FORM>
-</BODY>
-</HTML>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/login.html b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/login.html
deleted file mode 100644
index a1a5440a4f..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/login.html
+++ /dev/null
@@ -1,60 +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.
--->
-<html>
-<title>Welcome to Big Bank</title>
-
-<body>
-
-<form action="loginAction" method="post">
- <table>
- <tr>
- <td colspan="2">Please login in to access your account</td>
- </tr>
- </table>
- <table>
- <tr>
- <td>Login</td>
- <td><input type="text" name="login"/></td>
- <td><I><FONT
- size="-1" color="red">(test)</FONT></I></td>
- </tr>
- <tr>
- <td>Password</td>
- <td><input type="password" name="password"/></td>
- <td><I><FONT size="-1" color="red">(password)</FONT></I></td>
- </tr>
- <tr>&nbsp;<td></td>
- <td align="right"><input type="submit" name='login' value="login"/></td>
- <tr>&nbsp;<td></td>
- </tr>
- </table>
-</form>
-<P><BR></P>
-<HR/>
-<FORM action="CustomerProfile.jsp" method="get">
-<BR>New to Big Bank? Please open a new account with us.
-<BR/>
-<P>
-<INPUT type="submit" name="createAccount" value="Create a new account">
-
-</FORM>
-
-
-</body>
-</html>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/purchaseStock.jsp b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/purchaseStock.jsp
deleted file mode 100644
index 90c3a813b6..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/purchaseStock.jsp
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- 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.
- --%>
-
-<HTML>
-<HEAD>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META http-equiv="Content-Style-Type" content="text/css">
-<TITLE>BigBank- Stock purchase</TITLE>
-</HEAD>
-<BODY><P><FONT size="+1">Stock purchase</FONT><BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='stockPurchase' />
-<TABLE border="0">
- <TBODY>
- <TR>
- <TD>Symbol </TD>
- <TD width="10%"></TD>
- <TD><INPUT type="text" name="symbol" size="6"></TD>
- </TR>
- <TR>
- <TD>Quantity</TD>
- <TD></TD>
- <TD><INPUT type="text" name="quantity" size="6"></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD></TD>
- <TD></TD>
- </TR>
- </TBODY>
-</TABLE>
-<BR>
-<INPUT type="submit" name="purchase" value="purchase">&nbsp;&nbsp;
-<INPUT type="submit" name="cancel" value="cancel"></FORM>
-<P><BR>
-</P>
-</BODY>
-</HTML>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/stockSale.jsp b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/stockSale.jsp
deleted file mode 100644
index a2b08f4352..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/stockSale.jsp
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- 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.
- --%>
-
-<HTML>
-<HEAD>
-<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META http-equiv="Content-Style-Type" content="text/css">
-<TITLE>BigBank- Stock sale</TITLE>
-</HEAD>
-<BODY><P><FONT size="+1">Stock sale</FONT><BR>
-<BR>
-</P>
-<FORM method="post" action="FormServlet">
-<input type="hidden" name="action" value='stockSale' />
-<input type="hidden" name="purchaseLotNumber" value='<%=request.getParameter("purchaseLotNumber")%>' />
-<TABLE border="0">
- <TBODY>
-
- <TR>
- <TD>Quantity</TD>
- <TD></TD>
- <TD><INPUT type="text" name="quantity" size="6"></TD>
- </TR>
- <TR>
- <TD></TD>
- <TD></TD>
- <TD></TD>
- </TR>
- </TBODY>
-</TABLE>
-<BR>
-<INPUT type="submit" name="stockSale" value="sell">&nbsp;&nbsp;
-<INPUT type="submit" name="cancel" value="cancel"></FORM>
-<P><BR>
-</P>
-</BODY>
-</HTML>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/summary.jsp b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/summary.jsp
deleted file mode 100644
index f31ded242f..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/main/webapp/summary.jsp
+++ /dev/null
@@ -1,144 +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.
- --%>
-
- <%@ page import="com.bigbank.account.AccountSummary" %>
- <%@ page import="com.bigbank.account.StockSummary" %>
- <%@ page session="true" %>
- <%@ page autoFlush="true" %>
-<%@ taglib uri="/WEB-INF/bigbank-tags.tld" prefix="sca" %>
-<sca:login profile="ProfileServiceComponent" url="login.html">
- <sca:service id="profile" name="ProfileServiceComponent"/>
-
- <html>
- <title>BigBank Account Summary</title>
-
- <body>
-
- Account Information for
- <FORM method="post" action='loginAction'>
- <jsp:getProperty name='profile' property='firstName'/>
- <jsp:getProperty name='profile' property='lastName'/>
- <input type="hidden" name="logoutHIDDEN" value='logoutHIDDEN' />
- &nbsp;&nbsp;<INPUT type="submit" name='logout' value="logout">
- <br>
- </FORM>
-
- <table>
- <tr>
- <td><strong>Account</strong></td>
- <td>&nbsp;</td>
- <td><strong>Balance</strong></td>
- </tr>
- <sca:accountStatus accountService="AccountServiceComponent" profileService="ProfileServiceComponent" id="account">
- <tr>
- <FORM method="post" action='accountTransaction.jsp'>
- <input type="hidden" name="account" value='<%=((AccountSummary)pageContext.getAttribute("account")).getAccountNumber()%>' />
- <td>
- <jsp:getProperty name="account" property="accountNumber"/>
- </td>
-
- <td>
- <jsp:getProperty name="account" property="accountType"/>
- </td>
- <td>
- <jsp:getProperty name="account" property="balance"/>
- </td>
- <td>
-
- <INPUT type="submit" name='transaction' value="deposit">
- </td>
- <td>
- <INPUT type="submit" name='transaction' value="withdraw">
- </td>
- </FORM>
- </tr>
- </sca:accountStatus>
- </table>
-
-
-
- <hr/>
- <FORM method="post" action='purchaseStock.jsp'>
- Stocks: &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="submit" name='Purchase' value="Purchase"><br/>
- </FORM>
-
- <table>
-
- <tr>
- <td><strong>Symbol</strong></td>
- <td><strong>Quantity</strong></td>
- <td><strong>Purchase Date</strong></td>
- <td>&nbsp;&nbsp;</td> <%-- spacer --%>
- <td><strong>Purchase Price</strong></td>
- <td><strong>Current Price</strong></td>
- <td><strong>Company Name</strong></td>
- <td><strong>Today High</strong></td>
- <td><strong>Today Low</strong></td>
- <td>&nbsp;&nbsp;</td> <%-- spacer --%>
- <td> <%-- sell button --%></td>
- </tr>
- <sca:stockStatus id="stocksummary">
- <FORM method="post" action='stockSale.jsp' >
- <tr>
- <td>
- <jsp:getProperty name="stocksummary" property="symbol"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="quantity"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="purchaseDate"/>
- </td>
- <td>&nbsp;&nbsp;</td> <%-- spacer --%>
- <td>
- <jsp:getProperty name="stocksummary" property="purchasePrice"/>
- </td>
-
- <td>
- <jsp:getProperty name="stocksummary" property="currentPrice"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="company"/>
- </td>
-
- <td>
- <jsp:getProperty name="stocksummary" property="highPrice"/>
- </td>
- <td>
- <jsp:getProperty name="stocksummary" property="lowPrice"/>
- </td>
- <td>&nbsp;&nbsp;</td> <%-- spacer --%>
- <td>
- <INPUT type="submit" name='stocksale' value="sell"><br/>
- <input type="hidden" name="purchaseLotNumber" value='<%=((StockSummary)pageContext.getAttribute("stocksummary")).getPurchaseLotNumber()%>' />
- </td>
- </tr>
- </FORM>
- </sca:stockStatus>
- </table>
-
- <hr/>
- <FORM method="post" action='accountLog.jsp'>
- Account and Stock Logs: &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="submit" name='Logs' value="Logs"><br/>
- </FORM>
-
-
- </body>
- </html>
-</sca:login>
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestAccountService.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestAccountService.java
deleted file mode 100644
index d5ece151de..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestAccountService.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.webclient.client;
-
-import java.util.List;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-
-import com.bigbank.account.AccountReport;
-import com.bigbank.account.AccountService;
-
-public class TestAccountService {
-
-
- public static void main(String[] args) throws Exception {
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
-
- AccountService accountService = (AccountService) moduleContext.locateService(AccountService.class, "AccountServiceComponent");
-
- AccountReport report = accountService.getAccountReport(12345);
- List summaries = report.getAccountSummaries();
-
- System.out.println("retrieved " + summaries.size() + " summaries");
-
- }
-}
diff --git a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestLoginService.java b/branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestLoginService.java
deleted file mode 100644
index 9af80e99db..0000000000
--- a/branches/sca-java-0.99/samples/old/bigbank/webclient/src/test/java/bigbank/webclient/client/TestLoginService.java
+++ /dev/null
@@ -1,42 +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.webclient.client;
-
-import org.osoa.sca.CompositeContext;
-import org.osoa.sca.CurrentCompositeContext;
-
-
-import bigbank.webclient.services.profile.LoginService;
-
-public class TestLoginService {
-
-
-
- public static void main(String[] args) throws Exception {
-
- CompositeContext moduleContext = CurrentCompositeContext.getContext();
- LoginService loginService = moduleContext.locateService(LoginService.class, "LoginServiceComponent");
-
- if (loginService.login("test", "password") == LoginService.SUCCESS) {
- System.out.println("Success");
- } else {
- System.out.println("Failure");
- }
- }
-}