geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r535050 - /geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
Date Fri, 04 May 2007 00:59:33 GMT
Author: jgenender
Date: Thu May  3 17:59:32 2007
New Revision: 535050

URL: http://svn.apache.org/viewvc?view=rev&rev=535050
Log:
GERONIMO-2841 - bypassed the redirect

Modified:
    geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java

Modified: geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java?view=diff&rev=535050&r1=535049&r2=535050
==============================================================================
--- geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
(original)
+++ geronimo/server/trunk/modules/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/TomcatEJBWebServiceContext.java
Thu May  3 17:59:32 2007
@@ -16,6 +16,7 @@
  */
 package org.apache.geronimo.tomcat;
 
+
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
@@ -24,11 +25,12 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import javax.servlet.ServletContext;
 import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import org.apache.catalina.Wrapper;
 import org.apache.catalina.authenticator.BasicAuthenticator;
 import org.apache.catalina.authenticator.DigestAuthenticator;
 import org.apache.catalina.authenticator.NonLoginAuthenticator;
@@ -126,11 +128,19 @@
         } else {
             isSecureTransportGuarantee = false;
         }
+        
         this.classLoader = classLoader;
         this.addValve(new EJBWebServiceValve());
+        
+        //Create a dummy wrapper
+        Wrapper wrapper = this.createWrapper();
+        String name = System.currentTimeMillis() + "";
+        wrapper.setName(name);
+        this.addChild(wrapper);
+        this.addServletMapping("/*", name);
 
     }
-
+    
     public class EJBWebServiceValve extends ValveBase{
 
         public void invoke(Request req, Response res) throws IOException, ServletException
{



Mime
View raw message