geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1031790 - /geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java
Date Fri, 05 Nov 2010 20:53:00 GMT
Author: djencks
Date: Fri Nov  5 20:53:00 2010
New Revision: 1031790

URL: http://svn.apache.org/viewvc?rev=1031790&view=rev
Log:
GERONMO-5050 ServletContextListener should set that it's a owb app.  Not sure why this isn't
needed on tomcat

Modified:
    geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java

Modified: geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java?rev=1031790&r1=1031789&r2=1031790&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java
(original)
+++ geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/WebBeansConfigurationListener.java
Fri Nov  5 20:53:00 2010
@@ -78,16 +78,16 @@ public class WebBeansConfigurationListen
     {
         this.lifeCycle = LifecycleFactory.getInstance().getLifecycle();
 
-//        try
-//        {
+        try
+        {
 //                this.lifeCycle.startApplication(event);
-//                event.getServletContext().setAttribute(OpenWebBeansConfiguration.PROPERTY_OWB_APPLICATION,
"true");
-//        }
-//        catch (Exception e)
-//        {
-//             logger.error(OWBLogConst.ERROR_0018, event.getServletContext().getContextPath());
-//             WebBeansUtil.throwRuntimeExceptions(e);
-//        }
+                event.getServletContext().setAttribute(OpenWebBeansConfiguration.PROPERTY_OWB_APPLICATION,
"true");
+        }
+        catch (Exception e)
+        {
+             logger.error(OWBLogConst.ERROR_0018, event.getServletContext().getContextPath());
+             WebBeansUtil.throwRuntimeExceptions(e);
+        }
     }
 
 



Mime
View raw message