From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 21:41:00 +0000 (+0200) Subject: Change name of data manager application bean. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=18288af880956ecc1168ca3f9b344ba8d86b62fc;p=demoscenemusic.git Change name of data manager application bean. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/core/Core.java b/src/main/java/net/pterodactylus/demoscenemusic/core/Core.java index eaba985..bfa8dee 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/core/Core.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/core/Core.java @@ -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); }