Change name of data manager application bean.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 21:41:00 +0000 (23:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 21:41:00 +0000 (23:41 +0200)
src/main/java/net/pterodactylus/demoscenemusic/core/Core.java

index eaba985..bfa8dee 100644 (file)
@@ -50,7 +50,7 @@ public class Core implements ServletContextListener {
                        DataSource dataSource = (DataSource) context.lookup("java:/comp/env/jdbc/demosceneMusic");
                        Database database = AbstractDatabase.fromDataSource(dataSource);
                        dataManager = new DataManager(database);
-                       servletContextEvent.getServletContext().setAttribute("DataManager", dataManager);
+                       servletContextEvent.getServletContext().setAttribute("dataManager", dataManager);
                } catch (NamingException ne1) {
                        servletContextEvent.getServletContext().log("Could not create database connection.", ne1);
                }