geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r500065 - /geronimo/samples/trunk/calculator-stateless-pojo/calculator-stateless-war/src/main/java/org/apache/geronimo/samples/calculator/CalculatorServlet.java
Date Thu, 25 Jan 2007 23:59:10 GMT
Author: dain
Date: Thu Jan 25 15:59:10 2007
New Revision: 500065

URL: http://svn.apache.org/viewvc?view=rev&rev=500065
Log:
JNDI lookup code is no longer necessary

Modified:
    geronimo/samples/trunk/calculator-stateless-pojo/calculator-stateless-war/src/main/java/org/apache/geronimo/samples/calculator/CalculatorServlet.java

Modified: geronimo/samples/trunk/calculator-stateless-pojo/calculator-stateless-war/src/main/java/org/apache/geronimo/samples/calculator/CalculatorServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/calculator-stateless-pojo/calculator-stateless-war/src/main/java/org/apache/geronimo/samples/calculator/CalculatorServlet.java?view=diff&rev=500065&r1=500064&r2=500065
==============================================================================
--- geronimo/samples/trunk/calculator-stateless-pojo/calculator-stateless-war/src/main/java/org/apache/geronimo/samples/calculator/CalculatorServlet.java
(original)
+++ geronimo/samples/trunk/calculator-stateless-pojo/calculator-stateless-war/src/main/java/org/apache/geronimo/samples/calculator/CalculatorServlet.java
Thu Jan 25 15:59:10 2007
@@ -42,25 +42,6 @@
     public void doGet(HttpServletRequest req, HttpServletResponse resp)
     throws ServletException, IOException {
 
-        /*
-        Context initialContext = null;
-        try {
-            initialContext = new InitialContext();
-        }
-        catch ( Exception e ) {
-            System.out.print("Cannot get initial context for JNDI: " + e.getMessage());
-            return;
-        }
-
-        try {
-            calc = (CalculatorLocal) initialContext.lookup("java:comp/env/ejb/Calculator");
-        }
-        catch ( Exception e ) {
-            System.out.println("Cannot lookup java:comp/env/ejb/Calculator: " + e);
-            return;
-        }
-        */
-
         try {
             String firstNumber = req.getParameter("firstNumber");
             String secondNumber = req.getParameter("secondNumber");



Mime
View raw message