ServletContext context = getServletContext(); mapServerAdress = context.getInitParameter("MapServerAdress"); mapServerUser = context.getInitParameter("MapServerUser"); mapServerPasswd = context.getInitParameter("MapServerPasswd"); try { connection = new ServerConnection(); connection.connect(mapServerAdress); } IServerObjectManager soManager = connection.getServerObjectManager();