diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-02 11:20:22 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-02 11:20:22 +0000 |
commit | 6eec5d359e96959ede468a63cabadf18c8a470c2 (patch) | |
tree | 75306e62719224eb71666069f72c64422a019984 /branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced | |
parent | 84ed5fd22e525b8c1a4c57556290b42c67375190 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/itest/contribution-jee-samples/war-nonenhanced/src/main/java/sample/HelloworldEjbServlet.java | 7 |
1 files changed, 2 insertions, 5 deletions
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("<html><head><title>Apache Tuscany Helloworld Web Sample</title></head><body>"); @@ -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("<br>Parameter sent to HelloworldService.getGreeting: "+name.toUpperCase()); - out.write(greeting2); + //out.write(greeting2); out.write("</body></html>"); out.flush(); out.close(); |