mirror of https://github.com/apache/openjpa.git
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:
parent
4fda4e9484
commit
82cd11cb19
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue