From 6eec5d359e96959ede468a63cabadf18c8a470c2 Mon Sep 17 00:00:00 2001 From: slaws Date: Sat, 2 May 2009 11:20:22 +0000 Subject: TUSCANY-2978 - Add some more sample archives based on the scenarios here http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Java+EE+Integration git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@770928 13f79535-47bb-0310-9956-ffa450edef68 --- .../war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java') diff --git a/branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java b/branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java index ae8613f8db..71055bbdfe 100644 --- a/branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java +++ b/branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java @@ -41,14 +41,11 @@ public class HelloworldEjbServlet extends HttpServlet { @EJB private HelloworldService service; - @Reference - protected HelloworldService helloworldSca; - @Override protected void service(HttpServletRequest request, HttpServletResponse response) throws IOException { String name = request.getParameter("name"); String greeting = service.getGreetings(name); - String greeting2 = helloworldSca.getGreetings(name.toUpperCase()); + //String greeting2 = helloworldSca.getGreetings(name.toUpperCase()); Writer out = response.getWriter(); out.write("Apache Tuscany Helloworld Web Sample"); @@ -58,7 +55,7 @@ public class HelloworldEjbServlet extends HttpServlet { out.write(greeting); out.write("The following is got by invoking the HelloworldService SCA service provided by the HelloworldServiceBean"); out.write("
Parameter sent to HelloworldService.getGreeting: "+name.toUpperCase()); - out.write(greeting2); + //out.write(greeting2); out.write(""); out.flush(); out.close(); -- cgit v1.2.3