You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/04/02 09:24:41 UTC
svn commit: r643766 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/JndiUtils.java
Author: bommel
Date: Wed Apr 2 00:24:31 2008
New Revision: 643766
URL: http://svn.apache.org/viewvc?rev=643766&view=rev
Log:
(TOBAGO-627) JNDI-Problem on Websphere Application Server
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/JndiUtils.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/JndiUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/JndiUtils.java?rev=643766&r1=643765&r2=643766&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/JndiUtils.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/JndiUtils.java Wed Apr 2 00:24:31 2008
@@ -33,10 +33,14 @@
NamingEnumeration<Binding> ne = ctx.listBindings("java:comp/env");
while (ne.hasMore()) {
Binding b = ne.next();
- //LOG.error("Property: " + b.getName());
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Property: " + b.getName());
+ }
if (property.equals(b.getName())) {
Object obj = b.getObject();
- //LOG.error("Value: "+ obj);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Value: "+ obj);
+ }
return obj;
}
}