diff options
Diffstat (limited to 'branches/sca-equinox/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java')
-rw-r--r-- | branches/sca-equinox/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/branches/sca-equinox/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java b/branches/sca-equinox/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java index f7b940f873..fe3b198a7b 100644 --- a/branches/sca-equinox/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java +++ b/branches/sca-equinox/samples/simple-bigbank-spring/src/main/java/bigbank/client/BigBankClient.java @@ -19,9 +19,9 @@ package bigbank.client; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; +import org.apache.tuscany.sca.node.Client; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.NodeFactory; import bigbank.account.AccountService; @@ -32,11 +32,11 @@ import bigbank.account.AccountService; public class BigBankClient { public static void main(String[] args) throws Exception { - SCANodeFactory factory = SCANodeFactory.newInstance(); - SCANode node = factory.createSCANodeFromClassLoader("BigBank.composite", BigBankClient.class.getClassLoader()); + NodeFactory factory = NodeFactory.newInstance(); + Node node = factory.createSCANodeFromClassLoader("BigBank.composite", BigBankClient.class.getClassLoader()); node.start(); - AccountService accountService = ((SCAClient)node).getService(AccountService.class, "AccountServiceComponent"); + AccountService accountService = ((Client)node).getService(AccountService.class, "AccountServiceComponent"); System.out.println("Account summary: " + accountService.getAccountReport("Customer_01") ); |