Index: lams_central/src/java/org/lamsfoundation/lams/web/SIFOpenIDServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/Attic/SIFOpenIDServlet.java,v diff -u -r1.4 -r1.5 --- lams_central/src/java/org/lamsfoundation/lams/web/SIFOpenIDServlet.java 25 Feb 2010 00:27:05 -0000 1.4 +++ lams_central/src/java/org/lamsfoundation/lams/web/SIFOpenIDServlet.java 25 Feb 2010 03:31:39 -0000 1.5 @@ -20,7 +20,6 @@ import org.lamsfoundation.lams.util.MessageService; import org.lamsfoundation.lams.util.WebUtil; import org.lamsfoundation.lams.web.util.AttributeNames; -import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; import org.verisign.joid.OpenIdException; import org.verisign.joid.consumer.OpenIdFilter; @@ -166,9 +165,6 @@ */ private void loginUser(String userOpenIDURL, HttpServletRequest request, HttpServletResponse response) throws IOException { - if (userService == null) { - userService = getService(); - } User user = userService.getUserDTOByOpenidURL(userOpenIDURL); if (user != null) { HttpSession hses = request.getSession(true); @@ -214,15 +210,6 @@ response.sendRedirect(portalURL); } - private IUserManagementService getService() { - if (userService == null) { - WebApplicationContext ctx = WebApplicationContextUtils - .getRequiredWebApplicationContext(getServletContext()); - userService = (IUserManagementService) ctx.getBean("userManagementService"); - } - return userService; - } - private void setService() { if (userService == null) { userService = (IUserManagementService) WebApplicationContextUtils.getRequiredWebApplicationContext(