src/java/de/uapcore/lightpit/DatabaseFacade.java

changeset 20
bd1a76c91d5b
parent 19
1a0ac419f714
child 24
8137ec335416
equal deleted inserted replaced
19:1a0ac419f714 20:bd1a76c91d5b
149 final String dbDialect = sc.getInitParameter(Constants.CTX_ATTR_DB_DIALECT); 149 final String dbDialect = sc.getInitParameter(Constants.CTX_ATTR_DB_DIALECT);
150 if (dbDialect != null) { 150 if (dbDialect != null) {
151 try { 151 try {
152 dialect = Dialect.valueOf(dbDialect); 152 dialect = Dialect.valueOf(dbDialect);
153 } catch (IllegalArgumentException ex) { 153 } catch (IllegalArgumentException ex) {
154 LOG.error(String.format("Unknown or unsupported database dialect %s. Defaulting to %s.", dbDialect, dialect)); 154 LOG.error("Unknown or unsupported database dialect {}. Defaulting to {}.", dbDialect, dialect);
155 } 155 }
156 } 156 }
157 157
158 try { 158 try {
159 LOG.debug("Trying to access JNDI context {}...", contextName); 159 LOG.debug("Trying to access JNDI context {}...", contextName);

mercurial