From 5ea89068b364bb03a12d4311d05ff9c91d378b7c Mon Sep 17 00:00:00 2001 From: ramkumar Date: Thu, 2 Jul 2009 17:08:20 +0000 Subject: Updated fixes for TUSCANY-3069 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@790682 13f79535-47bb-0310-9956-ffa450edef68 --- .../context/multiple/META-INF/spring/StockQuoteService-context.xml | 3 --- .../resources/context/multiple/META-INF/spring/beanRefContext.xml | 6 +++--- .../spring/src/test/java/context/multiple/StockQuoteServer.java | 7 +------ 3 files changed, 4 insertions(+), 12 deletions(-) (limited to 'branches/sca-java-1.x/itest') diff --git a/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/StockQuoteService-context.xml b/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/StockQuoteService-context.xml index 74473073ea..0b8ee44e85 100644 --- a/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/StockQuoteService-context.xml +++ b/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/StockQuoteService-context.xml @@ -29,8 +29,5 @@ - - - \ No newline at end of file diff --git a/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/beanRefContext.xml b/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/beanRefContext.xml index 8d86820d44..f547b179ef 100644 --- a/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/beanRefContext.xml +++ b/branches/sca-java-1.x/itest/spring/src/main/resources/context/multiple/META-INF/spring/beanRefContext.xml @@ -26,9 +26,9 @@ - - context/multiple/META-INF/spring/StockQuoteService-context.xml - context/multiple/META-INF/spring/SpringHelloWorld-context.xml + + META-INF/spring/SpringHelloWorld-context.xml + META-INF/spring/StockQuoteService-context.xml diff --git a/branches/sca-java-1.x/itest/spring/src/test/java/context/multiple/StockQuoteServer.java b/branches/sca-java-1.x/itest/spring/src/test/java/context/multiple/StockQuoteServer.java index 0f4d9f7c42..18c7ca6a74 100644 --- a/branches/sca-java-1.x/itest/spring/src/test/java/context/multiple/StockQuoteServer.java +++ b/branches/sca-java-1.x/itest/spring/src/test/java/context/multiple/StockQuoteServer.java @@ -39,12 +39,7 @@ public class StockQuoteServer { SCANodeFactory factory = SCANodeFactory.newInstance(); SCANode node = factory.createSCANode(new File("src/main/resources/context/multiple/StockQuote.composite").toURL().toString(), new SCAContribution("TestContribution", new File("src/main/resources/context/multiple/").toURL().toString())); - node.start(); - - // Method 1: To access the Spring Application Context instance - ApplicationContext ctx = SCAApplicationContextProvider.getApplicationContext(); - if (ctx.containsBean("StockQuoteServiceBean")) - System.out.println("StockQuoteServiceBean is now available for use..."); + node.start(); System.out.println("Press Enter to Exit..."); Thread.sleep(1000); -- cgit v1.2.3