X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjcoreee%2Fdatabase%2FBaseDatabaseBean.java;h=9e82877a37bf4e0e98e6cc88e11ba6124ea9520d;hb=1c8a01aa0e2e14a20d7483f8c656f8ebba3062ae;hp=c1c8e54cf3621c9ab9f94f6e269e18bad7ffc578;hpb=1c49ae234e12bc815f83ed0e1159e67aab7ffef1;p=jcore-utils.git diff --git a/src/org/mxchange/jcoreee/database/BaseDatabaseBean.java b/src/org/mxchange/jcoreee/database/BaseDatabaseBean.java index c1c8e54..9e82877 100644 --- a/src/org/mxchange/jcoreee/database/BaseDatabaseBean.java +++ b/src/org/mxchange/jcoreee/database/BaseDatabaseBean.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ package org.mxchange.jcoreee.database; import java.io.Serializable; +import java.text.MessageFormat; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; @@ -61,7 +62,7 @@ public abstract class BaseDatabaseBean implements Serializable { this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N } catch (final NamingException ex) { // Continue to throw - throw new RuntimeException("context.lookup() failed.", ex); //NOI18N + throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N } } @@ -82,4 +83,5 @@ public abstract class BaseDatabaseBean implements Serializable { protected LoggerBeanLocal getLoggerBeanLocal () { return this.loggerBeanLocal; } + }