Do not throw exception when failed to lookup JNDI, rather return null. Callers handle null

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2008-01-02 05:14:52 +00:00
parent 4fda4e9484
commit 82cd11cb19
1 changed files with 5 additions and 1 deletions

View File

@ -935,7 +935,11 @@ public class OpenJPAConfigurationImpl
name = StringUtils.trimToNull(name);
if (name == null)
return null;
return Configurations.lookup(name);
try {
return Configurations.lookup(name);
} catch (Exception ex) {
return null;
}
}
public void setConnection2UserName(String connection2UserName) {