Author: bdekruijff at gmail.com
Date: Mon Jan 31 11:13:48 2011
New Revision: 722

Log:
AMDATU-245 disable registerresources from httpcontext on httpservice

Modified:
   
branches/amdatu-dispatcher/amdatu-web/httpcontext/src/main/java/org/amdatu/web/httpcontext/service/HttpContextFactoryServiceImpl.java

Modified: 
branches/amdatu-dispatcher/amdatu-web/httpcontext/src/main/java/org/amdatu/web/httpcontext/service/HttpContextFactoryServiceImpl.java
==============================================================================
--- 
branches/amdatu-dispatcher/amdatu-web/httpcontext/src/main/java/org/amdatu/web/httpcontext/service/HttpContextFactoryServiceImpl.java
       (original)
+++ 
branches/amdatu-dispatcher/amdatu-web/httpcontext/src/main/java/org/amdatu/web/httpcontext/service/HttpContextFactoryServiceImpl.java
       Mon Jan 31 11:13:48 2011
@@ -81,20 +81,20 @@
         // Create context and bind all resources to it
         String resourceId = resourceProvider.getResourceId();
         Component component = null;
-        try {
-            String resId = HttpContextUtil.getResourceAlias(resourceId);
+//        try {
+//            String resId = HttpContextUtil.getResourceAlias(resourceId);
 
             // Create the http context
             component = internalCreate(bundleContext, resourceProvider);
-            HttpContext context = (HttpContext) component.getService();
+//            HttpContext context = (HttpContext) component.getService();
 
             // And register all resources on /[resourceId]/*
-            m_httpService.registerResources(resId, "", context);
+//            m_httpService.registerResources(resId, "", context);
 
             m_logService.log(LogService.LOG_INFO, "Http context created for '" 
+ resourceId + "'");
-        } catch (NamespaceException e) {
-            m_logService.log(LogService.LOG_ERROR, "Could not bind resources 
to '" + resourceId + "'", e);
-        }
+//        } catch (NamespaceException e) {
+//            m_logService.log(LogService.LOG_ERROR, "Could not bind resources 
to '" + resourceId + "'", e);
+//        }
         return component;
     }
 }

Reply via email to